3 ms·
Nice to see generator comprehensions in js. Glad that I don't have to remember anything much when coming from Python due to the choice of '('. Does anyone know
by aidos 11y ago
Nice to see generator comprehensions in js. Glad that I don't have to remember anything much when coming from Python due to the choice of '('.
Does anyone know where the for..of syntax comes from? Just seems to deviate from the way that other languages represent comprehensions (including maths).
- chc 11y agoFor…of loops are an ES6 feature that iterates the values of an iterable rather than the property names of an object.