You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 1.8KB

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