Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (10 sloc) 298 Bytes
* Check if given value is an instance of Boolean.
* @param value - Value to check.
* @returns True if is a Boolean, false if not.
export const isBoolean = <ValueType = unknown>(
value: ValueType | boolean
): value is boolean => typeof value === "boolean";
export default isBoolean;
You can’t perform that action at this time.