@cjser/math-average
v3.0.0-cjser.2
Published
Get the average of numbers
Maintainers
Readme
math-average
Get the average of numbers
Install
npm install math-averageUsage
import mathAverage from 'math-average';
mathAverage(1, 3);
//=> 2
mathAverage([1, 3]);
//=> 2Related
- math-sum - Sum numbers
- math-clamp - Clamp a number
cjser
This package is a CommonJS-compatible build generated by cjser for projects that still need require() support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.
Original repository: https://github.com/sindresorhus/math-average
