Last active
March 4, 2018 13:30
-
-
Save matthieu-D/78524bb06efc1b94938b327c0948ca87 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 VanillaSum = function (value, ...params) { | |
return value + params.reduce((accumulator, param) => accumulator + param); | |
} | |
export default VanillaSum |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment