Appearance
Function: throw_unless()
throw_unless(
condition,exception):void
Defined in: src/runtime.ts:190
Throw an error unless a condition is met
Parameters
condition
unknown
The condition to check
exception
string | Error
The error to throw or the error message
Returns
void
Throws
If the condition is not met