top | item 7873756 (no title) creatio | 11 years ago Anyone know if array comprehensions are also supported in chrome? discuss order hn newest pit|11 years ago var xs = 1, 2, 3 [for (x of xs) x * 2] SyntaxError: Unexpected token for Chrome Version 35.0.1916.114 cpeterso|11 years ago Not yet. Looks like only Firefox 30+ supports array and generator comprehensions:http://kangax.github.io/compat-table/es6/#Array_comprehensio...
pit|11 years ago var xs = 1, 2, 3 [for (x of xs) x * 2] SyntaxError: Unexpected token for Chrome Version 35.0.1916.114
cpeterso|11 years ago Not yet. Looks like only Firefox 30+ supports array and generator comprehensions:http://kangax.github.io/compat-table/es6/#Array_comprehensio...
pit|11 years ago
cpeterso|11 years ago
http://kangax.github.io/compat-table/es6/#Array_comprehensio...