Popularity
1.0
Growing
Activity
6.4
-
14
7
3

Programming language: JavaScript
License: MIT License
Tags: Number     Math     Min     Max     Range     Between     Limit     Clamp     Numbers    
Latest version: v1.0.0

math-clamp alternatives and similar modules

Based on the "Math" category.
Alternatively, view math-clamp alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of math-clamp or a related project?

Add another 'Math' Module

README

math-clamp

Clamp a number

Install

$ npm install math-clamp

Usage

import mathClamp from 'math-clamp';

mathClamp(1, {minimum: 2, maximum: 4});
//=> 2

API

mathClamp(number, {minimum, maximum})

Related