Clamp a value between two other values
Clamp a value between two other values. It's as simple as modules come - saving keystrokes because I've had to write this function too many times.
value, if it is between
b. Otherwise, returns the number
it's gone past.
MIT. See LICENSE.md for details.
It’s never been easier to manage developer teams with varying permissions and multiple projects. Learn more about Private Packages and Organizations…