Checks if value is classified as an Array object and has a length greater than 0.
value
Array
length
0
The value to check.
Returns true if value is a non-empty array, else false.
true
false
isNonEmptyArray([1, 2, 3])// => trueisNonEmptyArray([])// => false Copy
isNonEmptyArray([1, 2, 3])// => trueisNonEmptyArray([])// => false
Checks if
value
is classified as anArray
object and has alength
greater than0
.