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