HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/buyercall/node_modules/clamp/README.md
# clamp [![frozen](http://hughsk.github.io/stability-badges/dist/frozen.svg)](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 ##

[![clamp](https://nodei.co/npm/clamp.png?mini=true)](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.