Skip to content
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

ES6 array destructors #262

Open
mhagmajer opened this issue Jun 27, 2020 · 2 comments
Open

ES6 array destructors #262

mhagmajer opened this issue Jun 27, 2020 · 2 comments
Labels
AskScript ./src/askscript/** enhancement New feature or request

Comments

@mhagmajer
Copy link
Collaborator

Screenshot 2020-06-27 at 13 55 48

@mhagmajer mhagmajer added enhancement New feature or request AskScript ./src/askscript/** labels Jun 27, 2020
@czerwinskilukasz1
Copy link
Collaborator

czerwinskilukasz1 commented Jun 27, 2020

You mean this, right? https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment

const [a, b, ...rest] = [10, 20, 30, 40, 50];

@mhagmajer
Copy link
Collaborator Author

mhagmajer commented Jun 27, 2020

Yes, and also fun([head, ...tail]) { head }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AskScript ./src/askscript/** enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants