-
Notifications
You must be signed in to change notification settings - Fork 7
Utils.Function.assert
Christian d'Heureuse edited this page Sep 25, 2026
·
1 revision
commons-math-interpolation / Utils / assert
function assert(cond, msg?): asserts cond;Defined in: Utils.ts:27
Throws an exception if the passed condition is not true.
This is a TypeScript assertion function. After a call, the compiler narrows cond to true.
boolean
The condition to be checked.
string
An optional message for the exception.
asserts cond
Error
If cond is not true.