@noise-machines/normalize
v1.0.2
Published
Normalize an array of numbers.
Downloads
1
Readme
Normalize
Normalize arrays of numbers.
Installation
$ npm install @noise-machines/normalize
Usage
import normalize from '@noise-machines/normalize'
const normalized = normalize([1,2,3,4,5])
//=> [0, 0.25, 0.5, 0.75, 1]
console.log(normalized)