isString
Checks if the given value is a string.
Usage
isString("abc"); // => trueisString(123); // => false
Installation
npx atmx add helper is-string
Copy and paste the following method into @/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";}