function assert(
  expr,
  msg = "",
) {
  if (!expr) {
    throw new AssertionError(msg);
  }
}
/** Make an assertion, error will be thrown if `expr` does not have truthy value. */
Make an assertion, error will be thrown if `expr` does not have truthy value.
Make an assertion error will be thrown if ` expr ` does not have truthy value .
function assert(
  expr,
  msg = "",
) {
  if (!expr) {
    throw new AssertionError(msg);
  }
}
function assert ( expr , msg = "" , ) { if ( ! expr ) { throw new AssertionError ( msg ) ; } }
Make an assertion, error will be thrown if `expr` does not have truthy value.
Make an assertion error will be thrown if ` expr ` does not have truthy value .