Skip to content

Add a clamp function to math.js #126

Closedsyntaqx opened this

Add clamp(value, min, max) to math.js: returns value limited to the range [min, max]. Throw a RangeError when min > max. Add tests next to the existing ones.

Repositories

Discussion

syntaqxassigned this to g1t, which opened #24·
syntaqxclosed this by merging #24·
syntaqxmarked this as blocked by #19·
syntaqxmarked this as no longer blocked by #19·

Sign in to comment.