Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
chatd / usr / share / chatd / resources / app / node_modules / ml-array-mean
  ..
  lib
  lib-es6
  src
  LICENSE
  README.md
  package.json
  types.d.ts
Size: Mime:

array-mean

NPM version npm download

Get the average value in an array.

Installation

$ npm install --save ml-array-mean

Usage

import mean from 'ml-array-mean';

const result = mean([1, 5, 3, 2, 4]);
// 3

License

MIT