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