function assert(condition, opt_message) {
  if (!condition) {
    throw new Error(opt_message || 'Assertion failed');
  }
}
/**
 * Aborts a test if a condition is not met.
 * @param {boolean} condition The condition that must be true.
 * @param {string=} opt_message A message to log if the condition is not met.
 */
Aborts a test if a condition is not met.
@param {boolean} condition The condition that must be true.
@param {string=} opt_message A message to log if the condition is not met.
Aborts a test if a condition is not met . @param { boolean } condition The condition that must be true . @param { string = } opt_message A message to log if the condition is not met .
function assert(condition, opt_message) {
  if (!condition) {
    throw new Error(opt_message || 'Assertion failed');
  }
}
function assert ( condition , opt_message ) { if ( ! condition ) { throw new Error ( opt_message || 'Assertion failed' ) ; } }
Aborts a test if a condition is not met.
Aborts a test if a condition is not met .