Re:Deno Joins TC39
by runarberg on Monday December 13, 2021 @06:09PM
(#29545934)
Object.fromEntries takes iterable, so if you have a map from a handy iterator library you could get rid of the parent array returned from `bar.map`.
Or with the proposed iterator-helpers:
However the inner arrays are harder to get rid of... In fact even OP’s oneliner defines the inner arrays. I would hope there were some engine optimizations though which could minimize their footprint.
[ Parent
| on HN ]