isArray source npm

_.isArray(value)

Checks if value is classified as an Array object.

Arguments

  1. value (*)

    The value to check.

Returns (boolean)

Returns true if value is correctly classified, else false.

Example

_.isArray([1, 2, 3]);
// => true

_.isArray(document.body.children);
// => false

_.isArray('abc');
// => false

_.isArray(_.noop);
// => false