3 ms·
> the intermediate objects are still created Yeah; this is what the new iterator methods were intended to solve https://x.com/MozDevNet/status/202952741142421
by azangru 6mo ago
> the intermediate objects are still created
Yeah; this is what the new iterator methods were intended to solve
https://x.com/MozDevNet/status/2029527411424219254 https://x.com/MozDevNet/status/2029527411424219254
- zamadatix 6mo agoBasically? // This type of usage creates intermediates array.map().filter() // But these would not? array.values().map().filter().toArray() array.values().reduce()
- phpnode 6mo agounfortunately iterators have their own set of overheads and it's not clear that these new methods are any faster for most use cases.