lang/isNil

Checks whether a value is undefined or null.

Source:

Methods

(static) isNil(value) → {boolean}

Source:
Example
import { isNil } from '@untemps/utils/lang/isNil'

isNil(undefined) // true
isNil(42) // false
Parameters:
Name Type Description
value *

The value to check.

Returns:

true whether the value is undefined or null.

Type
boolean