Пропустите объект по значению JS
JSON.parse(JSON.stringify(obj)) //is a fast way to copy your objects, if your objects can be serialized to json.
https://aybee.codes
JSON.parse(JSON.stringify(obj)) //is a fast way to copy your objects, if your objects can be serialized to json.