UNPKG

es-toolkit

Version:

A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.

18 lines 496 B
//#region src/compat/predicate/isSymbol.d.ts /** * Check whether a value is a symbol. * * This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `symbol`. * * @param value The value to check. * @returns Returns `true` if `value` is a symbol, else `false`. * @example * isSymbol(Symbol.iterator); * // => true * * isSymbol('abc'); * // => false */ declare function isSymbol(value: any): value is symbol; //#endregion export { isSymbol };