Checks if value is classified as an Array object and has a length of 0.
value
Array
length
0
The value to check.
Returns true if value is an empty array, else false.
true
false
isEmptyArray([])// => trueisEmptyArray([1, 2, 3])// => false Copy
isEmptyArray([])// => trueisEmptyArray([1, 2, 3])// => false
Checks if
value
is classified as anArray
object and has alength
of0
.