UNPKG

@newdash/newdash

Version:

javascript/typescript utility library

20 lines (19 loc) 409 B
/** * Checks if `value` is classified as a boolean primitive or object. * * @since 5.5.0 * @category Lang * @param value The value to check. * @returns Returns `true` if `value` is a boolean, else `false`. * @example * * ```js * isBoolean(false) * // => true * * isBoolean(null) * // => false * ``` */ export declare function isBoolean(value: any): value is boolean; export default isBoolean;