Created
February 8, 2017 19:55
-
-
Save donedgardo/2c6401e535d539613b06b3caeb8ee5c2 to your computer and use it in GitHub Desktop.
ES6 Article
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
Object.assign(target, ...sources) | |
// Example | |
var obj = { a: 1 }; | |
var copy = Object.assign({}, obj); | |
console.log(copy); // { a: 1 } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment