Returns an array of the rolling sum of an array of numbers
function getRollingSum(arr: number[], decimalPlaces?: number): number[]
// Example:
rollingSum([1, 2, 3, 4, 5]) //=> [1, 3, 6, 10, 15]
Returns an array of the rolling sum of an array of numbers
function getRollingSum(arr: number[], decimalPlaces?: number): number[]
// Example:
rollingSum([1, 2, 3, 4, 5]) //=> [1, 3, 6, 10, 15]