Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 269 Bytes

readme.md

File metadata and controls

17 lines (11 loc) · 269 Bytes

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)