blob: 7d360724c01518ad6ad60766838d2ef3625e50f4 [file] [log] [blame] [view]
Yang Guo4fd355c2019-09-19 08:59:031# 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
6var isArrayish = require('is-arrayish');
7
8isArrayish([]); // true
9isArrayish({__proto__: []}); // true
10isArrayish({}); // false
11isArrayish({length:10}); // false
12```
13
14## License
15Licensed under the [MIT License](http://opensource.org/licenses/MIT).
16You can find a copy of it in [LICENSE](LICENSE).