X Tutup
The Wayback Machine - https://web.archive.org/web/20201126084647/https://github.com/sindresorhus/math-clamp
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

readme.md

math-clamp Build Status

Clamp a number

Install

$ npm install math-clamp

Usage

const mathClamp = require('math-clamp');

mathClamp(1, 2, 4);
//=> 2

API

mathClamp(number, min, max)

Related

About

Clamp a number

Resources

License

Packages

No packages published
You can’t perform that action at this time.
X Tutup