Qual é a maneira mais eficiente de clone profundo um objeto em JavaScript?
Assuming that you have only properties and not any functions in your object, you can just use:
var newObject = JSON.parse(JSON.stringify(oldObject));
shafeeque