Checks if an ArrayLike contains any element
Returns true if the ArrayLike is empty
true
const result = isEmpty([]);console.log(result); // true
Works with Strings, too
const result = isEmpty(" ");console.log(result); // false
true if the ArrayLike is empty, otherwise false
false
the ArrayLike to check
Generated using TypeDoc
Checks if an ArrayLike contains any element
Example
Returns
trueif the ArrayLike is emptyExample
Works with Strings, too
Returns
trueif the ArrayLike is empty, otherwisefalse