_.assign(object, [sources])
functionFoo() { this.a=1; } functionBar() { this.c=3; } Foo.prototype.b=2; Bar.prototype.d=4; _.assign({ 'a': 0 }, newFoo, newBar); // => { 'a': 1, 'c': 3 }
_.assign(object, [sources])
functionFoo() { this.a=1; } functionBar() { this.c=3; } Foo.prototype.b=2; Bar.prototype.d=4; _.assign({ 'a': 0 }, newFoo, newBar); // => { 'a': 1, 'c': 3 }