Start sharing components as a team!Share components as a team!Join Bit to build your applications faster.Get Started Free

is-array

v4.17.11arrow_drop_down
v4.17.11
STATUS
Passing
DOWNLOADS
3,659
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
A year ago
SIZE
486 B
Checks if `value` is classified as an `Array` object.
1 contributor
Install is-array as a package?
Copied
npm i @bit/lodash.lodash.is-array
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
Files
isArray.js
26 Lines(2 sloc)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/**
 * Checks if `value` is classified as an `Array` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an array, else `false`.
 * @example
 *
 * _.isArray([1, 2, 3]);
 * // => true
 *
 * _.isArray(document.body.children);
 * // => false
 *
 * _.isArray('abc');
 * // => false
 *
 * _.isArray(_.noop);
 * // => false
 */
var isArray = Array.isArray;

export default isArray;