README
math-avg
Get the average of numbers
Install
$ npm install --save math-avg
Usage
import mathAverage from 'math-avg';
mathAverage(1, 3);
//=> 2
mathAverage([1, 3]);
//=> 2
Related
- math-sum - Sum numbers
- math-clamp - Clamp a number
Get the average of numbers
<script type="module">
import mathAvg from 'https://cdn.skypack.dev/math-avg';
</script>
Get the average of numbers
$ npm install --save math-avg
import mathAverage from 'math-avg';
mathAverage(1, 3);
//=> 2
mathAverage([1, 3]);
//=> 2