Asserts that the given value is neither null nor undefined, narrowing its type accordingly.
null
undefined
The value to check.
Optional
Optional custom error message.
Asserts that the given value is neither
nullnorundefined, narrowing its type accordingly.