~chipaca/ubuntu-push/gsettings

« back to all changes in this revision

Viewing changes to docs/example-server/node_modules/mongodb/node_modules/readable-stream/node_modules/isarray/README.md

  • Committer: Tarmac
  • Author(s): Roberto Alsina
  • Date: 2014-09-08 12:45:38 UTC
  • mfrom: (326.1.3 re-doc)
  • Revision ID: tarmac-20140908124538-ajswdg1v1j4sw60o
[r=chipaca] Deduplicate text, and bring in the example code into the project.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
# isarray
 
3
 
 
4
`Array#isArray` for older browsers.
 
5
 
 
6
## Usage
 
7
 
 
8
```js
 
9
var isArray = require('isarray');
 
10
 
 
11
console.log(isArray([])); // => true
 
12
console.log(isArray({})); // => false
 
13
```
 
14
 
 
15
## Installation
 
16
 
 
17
With [npm](http://npmjs.org) do
 
18
 
 
19
```bash
 
20
$ npm install isarray
 
21
```
 
22
 
 
23
Then bundle for the browser with
 
24
[browserify](https://github.com/substack/browserify).
 
25
 
 
26
With [component](http://component.io) do
 
27
 
 
28
```bash
 
29
$ component install juliangruber/isarray
 
30
```
 
31
 
 
32
## License
 
33
 
 
34
(MIT)
 
35
 
 
36
Copyright (c) 2013 Julian Gruber <julian@juliangruber.com>
 
37
 
 
38
Permission is hereby granted, free of charge, to any person obtaining a copy of
 
39
this software and associated documentation files (the "Software"), to deal in
 
40
the Software without restriction, including without limitation the rights to
 
41
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
 
42
of the Software, and to permit persons to whom the Software is furnished to do
 
43
so, subject to the following conditions:
 
44
 
 
45
The above copyright notice and this permission notice shall be included in all
 
46
copies or substantial portions of the Software.
 
47
 
 
48
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 
49
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 
50
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 
51
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 
52
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 
53
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 
54
SOFTWARE.