function assert(expr, msg) {
    if (!expr) {
        throw new Error(typeof msg === 'string' ? msg : msg());
    }
}
// Evaluates the given expression and asserts error message if condition is unmet.
Evaluates the given expression and asserts error message if condition is unmet.
Evaluates the given expression and asserts error message if condition is unmet .
function assert(expr, msg) {
    if (!expr) {
        throw new Error(typeof msg === 'string' ? msg : msg());
    }
}
function assert ( expr , msg ) { if ( ! expr ) { throw new Error ( typeof msg === 'string' ? msg : msg ( ) ) ; } }
Evaluates the given expression and asserts error message if condition is unmet.
Evaluates the given expression and asserts error message if condition is unmet .