Posts by Igor Ryan • 19 points
1 post
-
-1
votes1
answer48
viewsQ: How to use ES6+ Spread to metamorphosize one object within another?
I have the following object below: const usuario = { nome: 'Diego', idade: 23, endereco: { cidade: 'Rio do Sul', uf: 'SC', pais: 'Brasil', } }; I’m gonna create a usuario2 based on the object…