@hellomonday/map
v1.0.0
Published
Map/lerp math function
Downloads
12
Keywords
Readme
@hellomonday/map
Map one number range to another. This is also known as learp.
Install
$ npm install --save @hellomonday/mapUsage
import map from '@hellomonday/map';
// map input from range 10-500 to 0-1
const input = 70;
const value = map(input, 10, 500, 0, 1);License
MIT © Hello Monday
