Array.prototype.toObjectByProperty( element=>element.property )

Naveen Chawla naveen.chwl at gmail.com
Tue Aug 8 10:53:32 UTC 2017


OK thanks for the link - can you explain where the complexity is in my
proposal?

On Tue, 8 Aug 2017 at 16:14 T.J. Crowder <tj.crowder at farsightsoftware.com>
wrote:

> On Tue, Aug 8, 2017 at 11:39 AM, Naveen Chawla <naveen.chwl at gmail.com>
> wrote:
> > Furthermore, if you use entries, this allows `[key, value]` entries
> > with object keys to be transformed into objects (which is not
> > allowed by `Object.fromEntries`):
>
> With respect, please do have a *thorough* read of my first reply in this
> thread, the ensuing discussion with Darien, and Darien's proposal, in
> particular [this bit of it](
> https://github.com/bathos/object-from-entries#additional-arguments).
> Those various sources explain my comment about complexity and how
> `Object.fromEntries` might do what you want.
>
> -- T.J. Crowder
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20170808/9a2977e5/attachment-0001.html>


More information about the es-discuss mailing list