InstallClamp a number
npm install math-clampUsage
import mathClamp from 'math-clamp'; mathClamp(1, {min: 2, max: 4}); //=> 2 mathClamp(1, {min: 2}); //=> 2 mathClamp(5, {max: 4}); //=> 4 mathClamp(3n, {max: 2n}); //=> 2nAPI mathClamp(number, {min?, max?}) Related
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4