Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const oldObject = { foo: 1, bar: 2 };
- const newObject = Object.assign({}, oldObject, { foo: 3, baz: [ 1, 2, 3 ] });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement