Variable: isNull
constisNull:TypePredicate<unknown,null>
Defined in: predicate/guards/index.ts:159
Type guard that checks if a value is null.
Param
The value to check
Returns
True if value is null
Example
import * as R from 'remeda'
import { isNull } from 'receta/predicate'
const values: unknown[] = [null, undefined, 0, '']
R.filter(values, isNull) // => [null]
See
- isUndefined - for undefined check
- isNullish - for null or undefined check
- isDefined - for non-nullish check