Last active
April 1, 2017 22:45
-
-
Save radovansurlak/ca8a200a1d334c5d13aa79191555af0d to your computer and use it in GitHub Desktop.
ES6 - Functional Programming Example
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
function addXNumbers () { | |
let numbers = Array.prototype.slice.call(arguments) | |
return numbers.reduce((acc, current) => acc + current) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment