Type guard check if the given value is null or undefined.
The value to check
True if the value is null or undefined, otherwise false
const data = ['demo', null, undefined, 'demo'];const count = data.filter(isNullish).length; // 2 Copy
const data = ['demo', null, undefined, 'demo'];const count = data.filter(isNullish).length; // 2
v0.4.0
Type guard check if the given value is null or undefined.