Skip to content

isNull

Checks if a value is null.

Available since v2.0.0

import { isNull } from '@helpers4/type';
isNull(value: unknown): value is null
ParameterTypeDescription
valueunknownThe value to check

value is null — True if value is null

isNull(null)      // => true
isNull(undefined) // => false
isNull(0)         // => false

View source on GitHub