@lou.codes/predicates
Version:
🧐 Predicate util functions
16 lines (15 loc) • 380 B
TypeScript
/**
* `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"];