Returns true if the string is empty or contains only whitespace.
true
The input string.
isEmptyString("") // => trueisEmptyString(" ") // => trueisEmptyString("hello") // => false Copy
isEmptyString("") // => trueisEmptyString(" ") // => trueisEmptyString("hello") // => false
Returns
trueif the string is empty or contains only whitespace.