domenic at domenicdenicola.com (2014-03-02T22:34:07.979Z)
+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):
```js
Object.assign({}, foo, bar);
```
+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.