Created
May 3, 2017 20:42
-
-
Save FlorianWendelborn/0ec66324f8d4d3cc5d722183a0e0e687 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 add=(x,...r)=>x+(+r?r[0]:add(...r)); | |
console.log(add(1,2,3,4,5,6)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment