Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let obj = {
- nombre: “Benjamin”,
- apellido: ”De la cruz”
- };
- let copia = Object.assign({}, obj);
- console.log(copia);
- // Object {nombre: “Benjamin”, apellido: ”De la cruz”}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement