+1
It's very common use case. Recently I switched to Object.assign in my utils
lib, and needed to replace one function with two: `assign` and
`assignMultiple`. It doesn't look as nice now.
There are a lot of use cases for that, also one to do non-destructive merge
(via @pornelski):
Object.assign({}, foo, bar);
--
View this message in context:
http://mozilla.6506.n7.nabble.com/Object-assign-with-several-source-objects-tp303184p309055.html
Sent from the Mozilla - ECMAScript 4 discussion mailing list archive at
Nabble.com.
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss