Created
October 1, 2016 21:00
-
-
Save dnasca/9ad4f9215341e6be7fa2857fa37cee82 to your computer and use it in GitHub Desktop.
fat arrow and spread use case
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
var a = (...n) => { | |
console.log(n[1]) | |
}; | |
a([1,2,3],[3,4,5],[6,7,8]) // -> [3,4,5] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment