@hellomonday/clamp
v1.0.1
Published
Constrain a value to lie between two further values
Downloads
20
Keywords
Readme
@hellomonday/clamp
Constrain a value to lie between two further values.
Install
$ npm install --save @hellomonday/clamp
Usage
const clampedValue = clamp(0, 10, 100);
License
MIT © Hello Monday