isSymbol
Checks if the given value is a symbol.
Usage
isSymbol(Symbol("abc")); // => trueisSymbol("abc"); // => falseInstallation
npx atmx add helper is-symbolCopy and paste the following method into @/utils/helpers/undefined.ts:
/*** Checks if the given value is a symbol.** @example* isSymbol(Symbol('abc')) // => true* isSymbol('abc') // => false*/export function isSymbol(value: unknown): value is symbol {return typeof value === "symbol";}