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.
Marek Piasecki
06fbe82dce
|
2 years ago | |
---|---|---|
.. | ||
LICENSE | 2 years ago | |
README.md | 2 years ago | |
index.js | 2 years ago | |
package.json | 2 years ago |
README.md
isarray
Array#isArray
for older browsers and deprecated Node.js versions.
Just use Array.isArray directly, unless you need to support those older versions.
Usage
var isArray = require('isarray');
console.log(isArray([])); // => true
console.log(isArray({})); // => false
Installation
With npm do
$ npm install isarray
Then bundle for the browser with browserify.
Sponsors
This module is proudly supported by my Sponsors!
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. Not sure how much of my modules you're using? Try feross/thanks!