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

array comprehensions #12

Open
backspaces opened this issue Jan 20, 2015 · 2 comments
Open

array comprehensions #12

backspaces opened this issue Jan 20, 2015 · 2 comments

Comments

@backspaces
Copy link

I realize array comprehensions were removed from es6, apparently due to es7 being performance oriented, including parallelism.

BUT Coffeescript has made me addicted to the critters! Would it be out of scope to show an example, in es6, of building your own array comprehension, then ditto for es5? They may be the same, sigh.

@addyosmani
Copy link
Owner

I think we could show them as long as we include a note about them being dropped from ES6.

@backspaces
Copy link
Author

That'd be great, thanks! And why folks might want help is performance:

Here's a jsperf on array comprenensions, for-loops, and alternatives.
​ ​http://jsperf.com/arraymap/12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants