isNullOrUndefined
determines if the value passed in is null or undefined this is safer than just checking for truthy or falsy because 0, '' are also falsy values.
Presentation
function isNullOrUndefined (value: unknown): boolean;
Returns
boolean
-true if the value is null or undefined
Parameters
Name | Type | Description |
---|---|---|
value | unknown | the value to check |