I propose spread assignment operator:
 
var obj = { test1: 1 };
var anotherObj = { test2: 2 };
obj ...= { test2: 2 }; // == (obj = { ...obj, ...anotherObj })
// { test1: 1, test2: 2 }
 
I'm surprised it wasn't in the original implementation
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to