Checks if value is classified as a string primitive and has a length greater than 0.
value
string
length
0
The value to check.
Returns true if value is a non-empty string, else false.
true
false
isNonEmptyString('Hello, world!')// => trueisNonEmptyString('')// => false Copy
isNonEmptyString('Hello, world!')// => trueisNonEmptyString('')// => false
Checks if
value
is classified as astring
primitive and has alength
greater than0
.