UNPKG

@monstermann/fn

Version:

A utility library for TypeScript.

22 lines 438 B
//#region src/function/isSymbol.d.ts /** * `isSymbol(target)` * * Checks if a value is a symbol. * * ```ts * isSymbol(Symbol("test")); // true * isSymbol("test"); // false * ``` * * ```ts * pipe(Symbol("test"), isSymbol()); // true * pipe("test", isSymbol()); // false * ``` */ declare const isSymbol: { (): (target: unknown) => target is symbol; (target: unknown): target is symbol; }; //#endregion export { isSymbol };