UNPKG

@lou.codes/predicates

Version:
16 lines (15 loc) 380 B
/** * `typeof` "boolean" alias. * * @category Primitives * @example * ```typescript * isBoolean(true); // true * isBoolean(false); // true * isBoolean(null); // false * ``` * @returns `true` if the given value is a `boolean`, `false` otherwise. */ export declare const isBoolean: ( input: unknown, ) => input is import("@lou.codes/types").TypeOfDictionary["boolean"];