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.

54 lines
1.5 KiB

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