Package Exports
- ml-array-sum
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-sum) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
array-sum
Get the sum of the values in an array.
Installation
$ npm install --save ml-array-sum
Usage
import sum from 'ml-array-sum';
const result = sum([1, 5, 3, 2, 4]);
// 15