Created
July 5, 2019 15:27
-
-
Save indreklasn/5ce2dcc96671fa1a561b4283a1d2a349 to your computer and use it in GitHub Desktop.
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
const add = (...nums) => { | |
return nums.reduce((total, num) => total + num); | |
} | |
add(1, 2, 3); // 6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment