UNPKG

bresenham-zingl

Version:

Bresenham rasterisation algorithms by Alois Zingl

4 lines (3 loc) 88 B
export default function assert(d, m = 'assert error') { if (!d) throw new Error(m); }