Functionsassertassert Callableassert(message: string, expression: () => boolean): voidAsserts will throw in process.env.NODE_ENV === 'development' builds if the expression evaluates falseParametersmessage: stringexpression: () => booleanReturns void
Asserts will throw in
process.env.NODE_ENV === 'development'
builds if the expression evaluates false