Requires a value to be non null.
The type of value that is being checked.
The value to require. This can be a promise that can return null or undefined in addition to the value.
This method returns val if it is not null or undefined, otherwise, an error is thrown.
An error if the value is null or undefined.
Requires a value to be non null.