Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var userDetails = {
name: "Mayank Gupta",
age: 30,
designation: "Developer",
contactDetails: "+91-9711083089"
}
var newUserObject = Object.assign({}, userDetails);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment