a-median
v1.0.0
Published
Returns average of numbers in an array
Downloads
4
Readme
a-median
Returns median of numbers in an array
Install
$ npm install --save a-median
Examples
var median = require('a-median');
console.log(median([3, 13, 7, 5, 21]));
// -> 7
console.log(median([23, 23, 40, 23]));
// -> 23
Usage
require('a-median')( array )
Arguments:
array
: array of Numbers
Returns: Returns median of numbers in an array
License
© 2016 vikram. MIT License