/** * Throws error message * @param condition checks if an attribute equal to condition * @param message error message */ export function assert(condition, message) { if (!condition) { throw new Error(`math.gl assertion failed. ${message}`); } }