title: Is there only lodash to deep copy an object?
body: <p>I have a big object that create charts, containing function, object array etc inside.</p>
  
  <p>I would like to deep copy that object in some situation.</p>
  
  <p>I went online to find a library for deep cloning, and I found only 2 </p>
  
  <p><a href="https://www.npmjs.com/package/clone-deep" rel="nofollow noreferrer">https://www.npmjs.com/package/clone-deep</a> which is a node library and I can't import correctly in my project because it triggers </p>
  
  <blockquote>
    <p>an only be default-imported using the 'allowSyntheticDefaultImports' flag which I can't change</p>
  </blockquote>
  
  <p>or lodash.</p>
  
  <p>But it sound very overkill to install a dependency for lodash, and only use the lodash/cloneDeep.</p>
  
  <p>Isn't there something else that would work ? or how to solve the import problem without changing the tsconfig flag.</p>