Test if a value is null
.
import { isNull } from '@studiometa/js-toolkit/utils';
isNull(null); // true
isNull(); // false
isNull(''); // false
value
(any
): the value to testReturns true
if the given value is null
, false
otherwise.