Skip to content

Latest commit

 

History

History

array-mean

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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