• Generates the cumulative array of a given input array.

    Parameters

    • arr: number[] | Float64Array<ArrayBufferLike>

      The input array

    Returns Float64Array<ArrayBuffer>

    returns the cumulated array.