Skip to content

Instantly share code, notes, and snippets.

@behnamazimi
Created March 4, 2019 06:00
Show Gist options
  • Save behnamazimi/3a2d9803254e40b4674c7a7990e2194c to your computer and use it in GitHub Desktop.
Save behnamazimi/3a2d9803254e40b4674c7a7990e2194c to your computer and use it in GitHub Desktop.
Deep Copy with Assign
// this code will assign Obj1 with an
// empty object and put it in Obj2
const Obj2 = Object.assign({}, Obj1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment