Skip to content

isString

isString(target)

Checks if target is a string.

ts
isString("hello"); // true
isString(123); // false
isString(null); // false
ts
pipe("hello", isString()); // true
pipe(123, isString()); // false
pipe(null, isString()); // false