Created
March 4, 2019 06:00
-
-
Save behnamazimi/3a2d9803254e40b4674c7a7990e2194c to your computer and use it in GitHub Desktop.
Deep Copy with Assign
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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