UNPKG

@litecanvas/utils

Version:

Utilities to help build litecanvas games

8 lines (7 loc) 168 B
/** * @param {any} condition * @param {string} message */ export default (condition, message = "Assertion failed") => { if (!condition) throw new Error(message) }