Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can now! The iterator helpers proposal is stage 3 and shipping in Chrome.

  (new Set([0, 1, 2])).values().map(x => x + 1).toArray()
You can also reduce, filter, find, etc.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: