Last active
August 18, 2019 16:27
-
-
Save dormd/8ae2b26bc367b679c385bcbabd33fbe9 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
function sumBy(items, iteratee) { | |
const sumByFunc = getSumByFunc(iteratee); | |
return items.reduce((sum, item) => { | |
return sum + sumByFunc(item); | |
}, 0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment