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
Get the sum of the values in an array.
$ npm install --save ml-array-sum
import sum from 'ml-array-sum';
const result = sum([1, 5, 3, 2, 4]);
// 15
npm i ml-array-sum
551,907
1.1.6
MIT
4.23 kB
8