UNPKG

@lou.codes/predicates

Version:
17 lines (16 loc) 423 B
/** * `typeof` "symbol" alias. * * @category Primitives * @example * ```typescript * isSymbol(Symbol("Lou")); // true * isSymbol(Symbol.iterator); // true * isSymbol("Lou"); // false * ``` * @param input Value to check. * @returns Returns `true` if value is a `symbol`, `false` otherwise. */ export declare const isSymbol: ( input: unknown, ) => input is import("@lou.codes/types").TypeOfDictionary["symbol"];