Object arithmetic--operator alternative to Object.assign

Bob Myers rtm at gol.com
Wed Mar 11 04:31:24 UTC 2015

Apologies if something like this has already been proposed and/or rejected
for whatever reason.

It would be nice to have an operator alternative for Object.assign. Perhaps
"dot-plus' would work:

obj1 .+ {x, y}

To mutate an existing object, "dot-plus-equals":

obj1 .+= {x, y}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150311/b5da5ff2/attachment.html>

More information about the es-discuss mailing list