-
-
Save ilearnjavascript/c899b4b48048bd98817fb3e2ccb992bd to your computer and use it in GitHub Desktop.
es6 - new methods - 16.js
This file contains hidden or 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
var original = { a: 0 }; | |
var copy = Object.assign({}, original); | |
console.log(original); // outputs: { a: 0 } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment