src/js/utils.js
/**
 * Asserts that a premise is true.
 */
Asserts that a premise is true.
Asserts that a premise is true .
function assertTrue(premise, message) {
    if (!premise) {
        throw new Error(message);
    }
}
function assertTrue ( premise , message ) { if ( ! premise ) { throw new Error ( message ) ; } }
Asserts that a premise is true.
Asserts that a premise is true .