JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 188256
  • Score
    100M100P100Q186769F
  • License MIT

Get the average value in an array

Package Exports

  • ml-array-mean
  • ml-array-mean/lib-es6/index.js
  • ml-array-mean/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ml-array-mean) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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