ml-array-sum
TypeScript icon, indicating that this package has built-in type declarations

1.1.6 • Public • Published

array-sum

NPM version npm download

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

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.6
    551,773
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.6
    551,773
  • 1.1.5
    85
  • 1.1.4
    17
  • 1.1.3
    17
  • 1.1.2
    15

Package Sidebar

Install

npm i ml-array-sum

Weekly Downloads

551,907

Version

1.1.6

License

MIT

Unpacked Size

4.23 kB

Total Files

8

Last publish

Collaborators

  • lpatiny
  • mljs-bot
  • stropitek
  • targos