function assert(condition, message = 'Assertion failed') {
    if (!condition) {
        if (typeof Error !== 'undefined') {
            throw new Error(message);
        }
        throw message; // Fallback
    }
}
/**
 * Checks if the condition evaluates to true.
 * @param {T} condition The condition to check.
 * @param {string=} message Error message in case of failure.
 * @throws {Error} When the condition evaluates to false.
 */
Checks if the condition evaluates to true.
@param {T} condition The condition to check.
@param {string=} message Error message in case of failure.
@throws {Error} When the condition evaluates to false.
Checks if the condition evaluates to true . @param { T } condition The condition to check . @param { string = } message Error message in case of failure . @throws { Error } When the condition evaluates to false .
function assert(condition, message = 'Assertion failed') {
    if (!condition) {
        if (typeof Error !== 'undefined') {
            throw new Error(message);
        }
        throw message; 
    }
}
function assert ( condition , message = 'Assertion failed' ) { if ( ! condition ) { if ( typeof Error !== 'undefined' ) { throw new Error ( message ) ; } throw message ; } }
Checks if the condition evaluates to true.
Checks if the condition evaluates to true .
// Fallback