Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const fooArray = [119119282, 68294204, 60553189, 40109742, 37361729, 38022183,
- 27395725, 49325663, 56731532, 43145665, 31362029, 29528583, 28085057, 22932686,
- 34394152, 34368250, 21479271, 8021882, 7967428, 6210432, 5972359, 10744380,
- 19204072, 12405333];
- const barArray = [];
- fooArray.reduce((previousValue, currentValue, currentIndex) => {
- barArray.push(previousValue)
- return previousValue + currentValue;
- });
- [119119282, 187413486, 247966675, 288076417, 325438146, 363460329, 390856054,
- 440181717, 496913249, 540058914, 571420943, 600949526, 629034583, 651967269,
- 686361421, 720729671, 742208942, 750230824, 758198252, 764408684, 770381043,
- 781125423, 800329495]
Add Comment
Please, Sign In to add comment