Last active
January 12, 2022 02:30
-
-
Save ancyrweb/972311e68e1eee89226a2d7914a87869 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const elements = [1, 2, 3, 4, 5]; | |
const nextElements = elements.reduce( | |
(previousValue, currentValue) => previousValue + currentValue, | |
0 | |
); // 15 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment