-
-
Save granmoe/ffce6559501f9f6ba0d6aec6c5605b0e 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 product = reduce((accum, current) => accum * current, 1) | |
const all = reduce((accum, current) => accum && current, true) | |
const any = reduce((accum, current) => accum || current, false) | |
const length = reduce(accum => accum + 1, 0) | |
const reverse = reduce((accum, current) => [current, ...accum], []) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment