initial commit
This commit is contained in:
17
node_modules/clamp/README.md
generated
vendored
Normal file
17
node_modules/clamp/README.md
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
# clamp [](http://github.com/hughsk/stability-badges) #
|
||||
|
||||
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.
|
||||
|
||||
## Usage ##
|
||||
|
||||
[](https://nodei.co/npm/clamp)
|
||||
|
||||
### `clamp(value, a, b)` ###
|
||||
|
||||
Returns `value`, if it is between `a` and `b`. Otherwise, returns the number
|
||||
it's gone past.
|
||||
|
||||
## License ##
|
||||
|
||||
MIT. See [LICENSE.md](http://github.com/hughsk/clamp/blob/master/LICENSE.md) for details.
|
||||
Reference in New Issue
Block a user