Array.prototype.toObjectByProperty( element=> )

Naveen Chawla naveen.chwl at
Fri Aug 11 04:57:59 UTC 2017

You lose at least the square bracket and dot notations for access, as
disadvantages, and I'm not aware of any advantages. If there aren't any
that compensate for the disadvantages, then it's a net negative

On Fri, 11 Aug 2017 at 09:41 Naveen Chawla <naveen.chwl at> wrote:

> `Map.fromIterable(allThePeople, person=>` is less verbose for
> your use case
> On Fri, 11 Aug 2017 at 03:54 Alexander Jones <alex at> wrote:
>> As far as I'm concerned, "most data arrays" — at least the ones you're
>> speaking about — should actually be `Map`s.
> Why? What's the advantage?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list