NPM Smell 🍑💨

trivial and outdated NPM packages

is-arrayish outdated npm logo

Checks if a value is an array.

Weekly Downloads
50,579,485
Dependencies
0
Latest Release
6 years ago
This dependency re-creates a native JavaScript API. It is recommended to use the native API instead
Outdated
natively supported
since 11 years (chrome, firefox, safari, nodejs)

About

This dependency checks if you’re dealing with 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.