ECMAScript 6 array and generator comprehensions
GPTKB entity
Statements (19)
| Predicate | Object |
|---|---|
| gptkbp:instanceOf |
gptkb:JavaScript_language_feature
|
| gptkbp:alternativeTo |
Array.prototype.reduce
Array.prototype.filter Array.prototype.map |
| gptkbp:category |
JavaScript syntax
JavaScript proposals |
| gptkbp:compatibleWith |
modern JavaScript engines
final ECMAScript 2015 standard |
| gptkbp:featureType |
syntactic sugar
|
| gptkbp:generatorSyntaxExample |
(for (x of y) x * x)
|
| gptkbp:hasSyntax |
[for (x of y) x * x]
|
| gptkbp:inspiredBy |
Python list comprehensions
|
| gptkbp:introducedIn |
gptkb:ECMAScript_6
|
| gptkbp:purpose |
create arrays or generators using concise syntax
|
| gptkbp:status |
removed from final ECMAScript 6 specification
|
| gptkbp:supportedBy |
early ES6 implementations (e.g., Firefox Nightly)
|
| gptkbp:bfsParent |
gptkb:Firefox_30
|
| gptkbp:bfsLayer |
7
|
| https://www.w3.org/2000/01/rdf-schema#label |
ECMAScript 6 array and generator comprehensions
|