is-array-x
v2.1.2
Published
Determines whether the passed value is an Array.
Downloads
355
Maintainers
Readme
is-array-x
Determines whether the passed value is an Array.
module.exports ⇒ boolean ⏏
The isArray() function determines whether the passed value is an Array.
Kind: Exported member
Returns: boolean - true if the object is an Array; otherwise, false.
| Param | Type | Description | | ----- | --------------- | -------------------------- | | obj | * | The object to be checked.. |
Example
import isArray from 'is-array-x';
console.log(isArray([])); // true
console.log(isArray({})); // false