just-clamp
Advanced tools
Comparing version 4.0.0 to 4.0.1
{ | ||
"name": "just-clamp", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "restrict a number within a range", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
## just-clamp | ||
Part of a [library](../../../../) of zero-dependency npm modules that do just do one thing. | ||
Part of a [library](https://anguscroll.com/just) of zero-dependency npm modules that do just do one thing. | ||
Guilt-free utilities for every occasion. | ||
[`🍦 Try it`](https://anguscroll.com/just/just-clamp) | ||
```shell | ||
npm install just-clamp | ||
``` | ||
```shell | ||
yarn add just-clamp | ||
``` | ||
Restrict a number within a range | ||
```js | ||
import clamp from 'just-clamp'; | ||
@@ -8,0 +19,0 @@ |
4853
38