Last change
on this file since eed0bf8 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
704 bytes
|
Line | |
---|
1 | # node-is-arrayish [![Travis-CI.org Build Status](https://img.shields.io/travis/Qix-/node-is-arrayish.svg?style=flat-square)](https://travis-ci.org/Qix-/node-is-arrayish) [![Coveralls.io Coverage Rating](https://img.shields.io/coveralls/Qix-/node-is-arrayish.svg?style=flat-square)](https://coveralls.io/r/Qix-/node-is-arrayish)
|
---|
2 | > Determines if an object can be used like an Array
|
---|
3 |
|
---|
4 | ## Example
|
---|
5 | ```javascript
|
---|
6 | var isArrayish = require('is-arrayish');
|
---|
7 |
|
---|
8 | isArrayish([]); // true
|
---|
9 | isArrayish({__proto__: []}); // true
|
---|
10 | isArrayish({}); // false
|
---|
11 | isArrayish({length:10}); // false
|
---|
12 | ```
|
---|
13 |
|
---|
14 | ## License
|
---|
15 | Licensed under the [MIT License](http://opensource.org/licenses/MIT).
|
---|
16 | You can find a copy of it in [LICENSE](LICENSE).
|
---|
Note:
See
TracBrowser
for help on using the repository browser.