Calculate the average of an array of numbers.
Install with npm
$ npm i array-avg --save
Usage
var avg = ; ;//=> 3 ;//=> 3 ;//=> 2
Related projects
array-sum: Add up all of the numbers in an array of numbers. Works when non-numbers are… more | homepage
Running tests
Install dev dependencies:
$ npm i -d && npm test
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Author
Brian Woodward
License
Copyright © 2015 Brian Woodward Released under the MIT license.
This file was generated by verb-cli on September 23, 2015.