Guest User

Untitled

a guest
Mar 19th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. let existingObject = { x: 1, foo: () => {} };
  2. let newObject = { ...existingObject };
  3. console.info(newObject); // {x: 1, foo: ƒ}
Add Comment
Please, Sign In to add comment