isNull<Actual>(input: null | Actual): input is null
typeof "null" alias. This "patches" typeof so null is not "object" but
"null" instead (rejected proposal for lack of backwards compatibility, more
details here).
Example
isNull(null); // true isNull(undefined); // false
Returns
true if the given value is a null, false otherwise.
typeof
"null" alias. This "patches" typeof sonull
is not"object"
but"null"
instead (rejected proposal for lack of backwards compatibility, more details here).Example
Returns
true
if the given value is anull
,false
otherwise.