|
Last change
on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
301 bytes
|
| Line | |
|---|
| 1 | "use strict";
|
|---|
| 2 |
|
|---|
| 3 | Object.defineProperty(exports, "__esModule", {
|
|---|
| 4 | value: true
|
|---|
| 5 | });
|
|---|
| 6 | exports.default = cumsum;
|
|---|
| 7 | function cumsum(values, valueof) {
|
|---|
| 8 | var sum = 0,
|
|---|
| 9 | index = 0;
|
|---|
| 10 | return Float64Array.from(values, valueof === undefined ? v => sum += +v || 0 : v => sum += +valueof(v, index++, values) || 0);
|
|---|
| 11 | } |
|---|
Note:
See
TracBrowser
for help on using the repository browser.