devAssert.mjs 165 Bytes
Newer Older
1 2 3 4 5 6 7
export default function devAssert(condition, message) {
  var booleanCondition = Boolean(condition);

  if (!booleanCondition) {
    throw new Error(message);
  }
}