What is isarray?
The isarray package is a minimalistic npm package used to determine if a given value is an array. It is particularly useful when you need to support older browsers or environments that do not have Array.isArray available.
What are isarray's main functionalities?
Check if a value is an array
This feature allows you to check if a value is an array. It returns true if the value is an array, and false otherwise.
var isArray = require('isarray');
console.log(isArray([])); // true
console.log(isArray({})); // false
Other packages similar to isarray
lodash.isarray
This package is a part of the Lodash library, which is a more comprehensive utility toolkit. Lodash's isArray function is similar to isarray, but it comes within a larger set of utility functions. Lodash is generally larger in size compared to the standalone isarray package.
is-arrayish
is-arrayish checks if a value is array-like, meaning it's not strictly an array but can be treated like one (e.g., arguments object, NodeList). This is different from isarray, which strictly checks for actual Array instances.
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([]));
console.log(isArray({}));
Installation
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!