https://github.com/19h47/19h47-clamp
🗜 Playing with the clamp
https://github.com/19h47/19h47-clamp
Last synced: about 2 months ago
JSON representation
🗜 Playing with the clamp
- Host: GitHub
- URL: https://github.com/19h47/19h47-clamp
- Owner: 19h47
- Created: 2020-06-16T07:08:17.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T09:01:58.000Z (over 2 years ago)
- Last Synced: 2025-03-17T19:44:37.515Z (2 months ago)
- Language: JavaScript
- Homepage: https://19h47.github.io/19h47-clamp/
- Size: 2.01 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @19h47/clamp
**@19h47/clamp** is a small module to clamp a number between an upper and lower bound.
```javascript
import clamp from '@19h47/clamp';clamp(100, 0, 50); // 50
```## Test
```bash
yarn test
```