Asserts that a given input is not undefined or null, and throws a DataError if it does.
undefined
null
If no error is thrown from this, the input type gets narrowed down to not include undefined or null.
The type of the input.
The input to assert against.
If the input is undefined or null.
Asserts that a given input is not
undefinedornull, and throws a DataError if it does.If no error is thrown from this, the input type gets narrowed down to not include
undefinedornull.