@lucid-softworks/is-boolean
v0.1.0
Published
A type guard for primitive booleans.
Maintainers
Readme
@lucid-softworks/is-boolean
Check for the primitive values true and false, narrowing unknown input to
boolean.
import { isBoolean } from "@lucid-softworks/is-boolean";
if (isBoolean(value)) {
value satisfies boolean;
}