Checks if value is classified as a string primitive and has a length of 0.
value
string
length
0
The value to check.
Returns true if value is an empty string, else false.
true
false
isEmptyString('')// => trueisEmptyString('Hello, world!')// => false Copy
isEmptyString('')// => trueisEmptyString('Hello, world!')// => false
Checks if
valueis classified as astringprimitive and has alengthof0.