-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with "Spread syntax (...)": should it be rest in destructuring? #9457
Comments
Interesting find. Thanks for reporting this, @arturcarvalho! I think the problem here is that we've duplicated the data for this syntax:
If I've understood correctly, then the fix here would be to delete the spread feature. I'd welcome a PR (from you or another contributor) making this change. |
Hi @ddbeck, thanks for the reply! Exactly, deleting would make the table correct. I can send a PR. Have a nice day. |
@arturcarvalho That's correct. Our data files aren't actually generated (though we do a fair amount of automation against them)—think of them as very structured writing. 😃 |
I laughed out loud with the I'll send a PR after work. Thanks for the reply. |
MDN URL: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax
Hi there,
On the browser compatibility table for the spread syntax, it is mentioned "spread destructuring". Shouldn't it be "rest destructuring" or something along those lines? Initial discussion.
The error when the syntax is with the wrong order also hints at that:
Thanks and have a nice day!
MDN Content page report details
en-us/web/javascript/reference/operators/spread_syntax
The text was updated successfully, but these errors were encountered: