Object.assign vs $.extend : <p>Given that I am using an immutable object, I want to <strong>clone</strong> or <strong>copy</strong> an object in order to make changes.</p>

<p>Now I have always been using javascript's native <code>Object.assign</code> but stumbled upon the JQuery <code>$.extend</code>.</p>

<p>I was wondering what is the better way to do this and what exactly the difference is between both? Looking at the documentation I cannot seem to really find a mentionable difference concerning why to choose either one.</p>
