Assert that a value is available. Throw an error with the specified message if the provided value is null or undefined
the value
expectOrThrow(1) === 1
expectOrThrow(null) // throws error
expectOrThrow(null, ':(') // throws error w/ message ':('
Generated using TypeDoc
Assert that a value is available. Throw an error with the specified message if the provided value is null or undefined
Returns
the value
Example
Example
Example