UNPKG
bresenham-zingl
Version:
latest (0.2.5)
0.2.5
0.2.4
0.2.2
0.2.1
0.2.0
0.1.1
0.1.0
0.0.1
Bresenham rasterisation algorithms by Alois Zingl
github.com/w8r/bresenham-zingl
w8r/bresenham-zingl
bresenham-zingl
/
src
/
assert.ts
4 lines
(3 loc)
•
88 B
text/typescript
View Raw
1
2
3
4
export
default
function
assert
(
d, m =
'assert error'
) {
if
(!d)
throw
new
Error
(m); }