Have ideas to improve npm?Join in the discussion! »

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

    1.0.0 • Public • Published

    cumulative-sum Travis CI Build Status

    Add the numbers in an array cumulatively.

    NPM Badge

    Install

    npm install cumulative-sum

    Usage

    const cumulativeSum = require("cumulative-sum")
     
    cumulativeSum([1, 2, 3])
    //=> [1, 3, 6]

    API

    cumulativeSum(array)

    array

    Type: array

    The array to add the numbers of.

    Install

    npm i cumulative-sum

    DownloadsWeekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    2.87 kB

    Total Files

    6

    Last publish

    Collaborators

    • avatar