@proto-kit/protocol β’ Docs
Documentation / @proto-kit/protocol / assert
Function: assert()
assert(
condition,message?):void
Maintains an execution status of the current runtime module method, while prioritizing one-time failures. The assertion wonβt change the execution status if it has previously failed at least once within the same method execution context.
Parameters
β’ condition: Bool
Result of the assertion made about the execution status
β’ message?: string | () => string
Optional message describing the prior status
Returns
void