Check if a value is a non-empty string. Returns true only for strings with content, false for empty strings or other types.
The value to check
Returns true if value is a non-empty string, false otherwise
import isString from '~/utils/isString';isString('hello'); // trueisString(''); // false (empty string)isString(' '); // true (space is content)isString(123); // falseisString(null); // false Copy
import isString from '~/utils/isString';isString('hello'); // trueisString(''); // false (empty string)isString(' '); // true (space is content)isString(123); // falseisString(null); // false
Check if a value is a non-empty string. Returns true only for strings with content, false for empty strings or other types.