get-average-if
Installation
npm install get-average-
Syntax
/** * @param * @param * @param * @returns */
Usage
; // Get the average of all even numbers in a number array.; // 3 // Get the average of all even numbers in an Immutable.List.; // 3 // Get the average age of an object array with users.; // 25
Tests
npm test
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.
Release History
- 1.0.0 Initial release