@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
Constrain a value to lie between two further values.
$ npm install --save @hellomonday/clamp
const clampedValue = clamp(0, 10, 100);
MIT © Hello Monday
Version | Downloads (Last 7 Days) | Tag |
---|---|---|
1.0.1 | 10 | latest |
Version | Downloads (Last 7 Days) | Published |
---|---|---|
1.0.1 | 10 | |
1.0.0 | 0 | |
1.0.0-beta.1 | 0 |
npm i @hellomonday/clamp
10
1.0.1
MIT
1.78 kB
4