function assertExists(actual, msg) {
  if (actual === undefined || actual === null) {
    if (!msg) {
      msg =
        `actual: "${actual}" expected to match anything but null or undefined`;
    }
    throw new AssertionError(msg);
  }
}
/**
 * Make an assertion that actual is not null or undefined. If not
 * then thrown.
 */
Make an assertion that actual is not null or undefined. If not
then thrown.
Make an assertion that actual is not null or undefined . If not then thrown .
function assertExists(actual, msg) {
  if (actual === undefined || actual === null) {
    if (!msg) {
      msg =
        `actual: "${actual}" expected to match anything but null or undefined`;
    }
    throw new AssertionError(msg);
  }
}
function assertExists ( actual , msg ) { if ( actual === undefined || actual === null ) { if ( ! msg ) { msg = ` ${ actual } ` ; } throw new AssertionError ( msg ) ; } }
Make an assertion that actual is not null or undefined.
Make an assertion that actual is not null or undefined .