Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upArray destructuring #129
Comments
This comment has been minimized.
This comment has been minimized.
|
I dont think
But this works
|
This comment has been minimized.
This comment has been minimized.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment |
This comment has been minimized.
This comment has been minimized.
|
Cool, thanks for debugging this. |
feross
closed this
May 8, 2015
This comment has been minimized.
This comment has been minimized.
|
@feross so wait, is the conclusion that it is an |
This comment has been minimized.
This comment has been minimized.
|
@feross Why was this closed? Could be related to eslint/eslint#2405 |
This comment has been minimized.
This comment has been minimized.
|
Reopening :) That eslint issue links to the real issue which is in escope estools/escope#33 |
Flet
reopened this
May 9, 2015
This comment has been minimized.
This comment has been minimized.
|
Ah, sorry I misunderstood what this issue was about. ;) Thanks for re-opening @Flet. |
feross
added
bug
blocked
labels
May 13, 2015
This comment has been minimized.
This comment has been minimized.
|
This issue is fixed. Not sure which version it was fixed in, but there's no longer an error when linting: let [a, b = {}] = [1, 2]
a
bNice! |
sebdeckers commentedMay 8, 2015
Seems like this syntax triggers a false positive, or maybe my ES6 understanding is lacking.
Input
Output