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