-
-
Notifications
You must be signed in to change notification settings - Fork 0
boolean
Nicholas Berlette edited this page Jun 19, 2025
·
1 revision
function isBoolean(it: unknown): it is boolean;Checks if the given value is a boolean.
| Name | Info |
|---|---|
it |
The value to check. |
true if the value is a boolean, false otherwise.
Primitives
import { isBoolean } from "jsr:@nick/is/boolean";
isBoolean("true"); // false
isBoolean(true); // true