17fb25c22ec0bfc5c9acb47edc0262f4be84cd99a489e82be8b8c8ca7202d8f3bda90f6c614395530504dc28f4351845000902eba6784af154f1b2131773fd 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # isarray
  2. `Array#isArray` for older browsers and deprecated Node.js versions.
  3. [![build status](https://secure.travis-ci.org/juliangruber/isarray.svg)](http://travis-ci.org/juliangruber/isarray)
  4. [![downloads](https://img.shields.io/npm/dm/isarray.svg)](https://www.npmjs.org/package/isarray)
  5. [![browser support](https://ci.testling.com/juliangruber/isarray.png)
  6. ](https://ci.testling.com/juliangruber/isarray)
  7. __Just use Array.isArray directly__, unless you need to support those older versions.
  8. ## Usage
  9. ```js
  10. var isArray = require('isarray');
  11. console.log(isArray([])); // => true
  12. console.log(isArray({})); // => false
  13. ```
  14. ## Installation
  15. With [npm](https://npmjs.org) do
  16. ```bash
  17. $ npm install isarray
  18. ```
  19. Then bundle for the browser with
  20. [browserify](https://github.com/substack/node-browserify).
  21. ## Sponsors
  22. This module is proudly supported by my [Sponsors](https://github.com/juliangruber/sponsors)!
  23. Do you want to support modules like this to improve their quality, stability and weigh in on new features? Then please consider donating to my [Patreon](https://www.patreon.com/juliangruber). Not sure how much of my modules you're using? Try [feross/thanks](https://github.com/feross/thanks)!