Skip to content

Instantly share code, notes, and snippets.

@dnasca
Created October 1, 2016 21:00
Show Gist options
  • Save dnasca/9ad4f9215341e6be7fa2857fa37cee82 to your computer and use it in GitHub Desktop.
Save dnasca/9ad4f9215341e6be7fa2857fa37cee82 to your computer and use it in GitHub Desktop.
fat arrow and spread use case
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