Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

math-avg

sindresorhus1.9kMITdeprecated3.0.0

Renamed to math-average

Get the average of numbers

math, average, number, numbers, num, add, count, array

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