Toolbox-XToolbox-X
GuardsPrimitive Type Guards

Nullish Type Checkers

Runtime type guards to validate nullish values.

Runtime type guards to validate nullish values (null/undefined).

Imports

import { isNull, isUndefined } from 'toolbox-x/guards';

isNull

Validates if a value is null.

Signature

isNull(value: unknown): value is null

Examples

playground.ts

isUndefined

Validates if a value is undefined.

Signature

isUndefined(value: unknown): value is undefined

Examples

playground.ts

Last updated: Sat, Jun 06, 2026 09:29:26AM (UTC)

On this page