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

Darien Valentine valentinium at gmail.com
Mon Aug 7 00:24:33 UTC 2017


@Isiah I think you and I just described the identical thing (except that
I’d put `fromEntries` where you put `from`) — and it’s a subset of the
overloaded proposed solution from Crowder above. That three people
responded with the same thing or a variation of it suggests that this is
indeed a gap where a thing intuitively ought to exist.

@Harband Unless somebody else wants to, I’d be interested in trying my hand
at assembling a proper proposal. I think I’ve spent enough time in the spec
& various proposals at this point that I might not totally butcher it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20170806/422b233d/attachment.html>


More information about the es-discuss mailing list