Created
October 13, 2016 04:22
-
-
Save matthieu-D/5c1c8b56b35ecb66e21f03201dda3900 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 arr1 = [1,2,3]; | |
function destructure([a,b]) { | |
console.log(a,b); | |
//1 2 | |
} | |
destructure(arr1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment