NPM Smell 🍑💨

trivial and outdated NPM packages

is-arrayish outdated npm logo

Checks if a value is an array.

Weekly Downloads
43,702,392
Dependencies
0
Latest Release
4 months ago
Switch to the native implementation.
Outdated
natively supported
since 13 years (chrome, firefox, safari, nodejs)

About

This dependency checks if a value is an array.

To check for an array, you can use the native Array.isArray method:

Array.isArray is part of the ECMAScript standard and is widely supported in modern browsers and Node.js.

Array.isArray([]); // true

Array.isArray({}); // false
Array.isArray(null); // false
Array.isArray(undefined); // false
Array.isArray(123); // false
// etc.

No need to use a dependency to check if you’re dealing with an array.