Popularity
0.7
Declining
Activity
2.2
Growing
8
7
1

Monthly Downloads: 0
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