Checks if the given value is a symbol.
isSymbol(Symbol("abc")); // => trueisSymbol("abc"); // => false
npx atmx add helper is-symbol
Copy and paste the following method into @/utils/helpers/undefined.ts:
@/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";}