prc b6c02717e6 Upload complete no-internet building environment. | há 1 ano atrás | |
---|---|---|
.. | ||
LICENSE | há 1 ano atrás | |
README.md | há 1 ano atrás | |
index.js | há 1 ano atrás | |
package.json | há 1 ano atrás |
Array#isArray
for older browsers and deprecated Node.js versions.
Just use Array.isArray directly, unless you need to support those older versions.
var isArray = require('isarray');
console.log(isArray([])); // => true
console.log(isArray({})); // => false
With npm do
$ npm install isarray
Then bundle for the browser with browserify.
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!