Verify the validity of a string.
Usage:
import { isString } from "mazey";const ret1 = isString("abc");const ret2 = isString({ a: 1 });const ret3 = isString(null);console.log(ret1, ret2, ret3); Copy
import { isString } from "mazey";const ret1 = isString("abc");const ret2 = isString({ a: 1 });const ret3 = isString(null);console.log(ret1, ret2, ret3);
Output:
true false false Copy
true false false
The string to verify.
Return TRUE if the object is a string.
Verify the validity of a string.
Usage:
Output: