How can i copy an object in javascript correctly? : <p>I'm trying to copy an object in other using spread operator but wheni change one item from array in a copy object, the original is changed to. Any one knows how can i make the change only in object 2 ?</p>

<p>Follow a simple example:</p>

<pre><code>let obj1 = { a:'hello', b:'hi', c: [1,2,3] }
let obj2 = { ...obj1 }
obj2.c[1] = 44 
</code></pre>
