aboutsummaryrefslogtreecommitdiff
path: root/utils/assert.tsx
blob: 0ee51a02f46efad0256f79e646cd65dcc98f1b2b (plain)
1
2
3
export default function assert(cond : boolean, message?: string) {
  if(!cond) { throw Error(message); }
};