/**
* Test if condition is truthy.
* @param {any} expression to be evaluated
* @param {string} error message to be shown
* @returns {void}
* @throws
*/
export functioninvariant(condition: any, message?: string): assertscondition{
if (!condition) thrownewError(message);
}