You can write a method that generates a clone depending on how specific and dynamic you need it to be. But aside from that, I'm not too familiar with anything that's native to Javascript.
class Person
{
constructor(name, age, weight)
{
this.name = name;
this.age = age;
this.weight = weight;
}
Clone()
{
let myCopy = new Person(this.age, this.weight, this.weight);
return myCopy;
}
}
let me = new Person('Eddie', 29, 345);
let myTwin = me.Clone();
console.log(me, myTwin);
A complete and deep clone would be a little bit of overhead. It'd more than likely have to be able to identify all data types down to primitives and react for each one. Cloning an array might involve cloning the actual array and every value inside of it.
Every value inside of it might as well be a container that needs to follow the same process.