Checks if the given value is a string.
isString("abc"); // => trueisString(123); // => false
npx atmx add helper is-string
Copy and paste the following method into @/utils/helpers/undefined.ts:
@/utils/helpers/undefined.ts
/*** Checks if the given value is a string.** @example* isString('abc') // => true* isString(123) // => false*/export function isString(value: unknown): value is string {return typeof value === "string";}