Returns true if value is an array with no elements.
true
value
The value to check.
isEmptyArray([]) // => trueisEmptyArray([1, 2, 3]) // => falseisEmptyArray("not array") // => false Copy
isEmptyArray([]) // => trueisEmptyArray([1, 2, 3]) // => falseisEmptyArray("not array") // => false
Returns
trueifvalueis an array with no elements.