isBoolean
Determines if the value is a boolean.
Usage
isBoolean(true); // => trueisBoolean("hello"); // => falseInstallation
npx atmx add helper is-booleanCopy and paste the following method into @/utils/helpers/undefined.ts:
/*** Determines if the value is a boolean.** @param value - The value to check.* @returns `true` if the value is a boolean, `false` otherwise.* @example* isBoolean(true) // => true* isBoolean('hello') // => false*/export function isBoolean(value: unknown): value is boolean {return typeof value === "boolean";}