Checks if a String contains no characters
Returns true if the String is empty
true
const result = isEmpty("");console.log(result); // true
Returns false if the String contains any character
false
const result = isEmpty(" ");console.log(result); // false
true if the String has a length of 0, otherwise false
length
0
the String value to check
Generated using TypeDoc
Checks if a String contains no characters
Example
Returns
trueif the String is emptyExample
Returns
falseif the String contains any characterReturns
trueif the String has alengthof0, otherwisefalse