-
-
Save granmoe/8a3eebd74972a2e1f345772a4ff67caf to your computer and use it in GitHub Desktop.
This file contains 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 reducer = (accum, current) => accum + current | |
const initialValue = 0 | |
const list = [1, 2, 3] | |
reduce(reducer, initialValue, list) // 6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment