Re:Firefox 30.0
by creatio on Tuesday June 10, 2014 @12:59PM
(#7873756)
Anyone know if array comprehensions are also supported in chrome?
[ Parent
| on HN ]
var xs = 1, 2, 3
[for (x of xs) x * 2]
SyntaxError: Unexpected token for
Chrome Version 35.0.1916.114Not yet. Looks like only Firefox 30+ supports array and generator comprehensions:
http://kangax.github.io/compat-table/es6/#Array_comprehensio...