Apa cara paling efisien untuk mengkloning objek dalam 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