Checks if a given value is an array.
This function is equivalent to Array.isArray.
Array.isArray
isArray(['hello', 'world])// => trueisArray(10)// => false Copy
isArray(['hello', 'world])// => trueisArray(10)// => false
The element type of the array.
The value to be checked.
true if the given value is an array, false otherwise.
true
false
Generated using TypeDoc v0.24.7
Checks if a given value is an array.
Remarks
This function is equivalent to
Array.isArray
.Example