Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 589 Bytes

File metadata and controls

28 lines (18 loc) · 589 Bytes

array-mean

NPM version npm download

Get the average value in an array.

Installation

$ npm install --save ml-array-mean

Usage

import mean from 'ml-array-mean';

const result = mean([1, 5, 3, 2, 4]);
// 3

License

MIT