Returns average of numbers in an array
$ npm install --save a-avarage
var avg = require('a-avarage');
console.log(avg([1, 2, 3, 4, 5]));
// -> 3
console.log(avg([1, 2, 3, 4]));
// -> 2.5
Arguments:
array
: array of Numbers
Returns: Returns average of numbers in an array
© 2016 vikram. MIT License