Hello,
I made a a function that clone an object. It takes the source object variable and a target object variable. The function copies the source object variable (not just the reference) to the target object variable to create an object independent from the first. Please let me me know if it’s well done and if there’s anything I could do to make it better.
Here is the deep clone function and here’s a link for more insight.
I know it isn’t part of MDN but your help would be deeply appreciated.
Thank you in advance for your help !