math-bound
v1.0.0
Published
Set boundaries to a number. The powers of Math.min() and Math.max() combined!
Downloads
6
Maintainers
Readme
Math.bound() & Number.prototype.bound()
Set boundaries to a number. The powers of Math.min() and Math.max() combined!
Syntax
Math.bound(x, min, max)or on a number:
x.bound(min, max)Parameters
- x - a number
- min - minimum value
- max - maximum value
Install
$ npm install math-boundLicense
MIT © Frontkom
