DEV Community

Discussion on: What's the best way to deeply clone an object in JavaScript?

Collapse
 
masterroshan profile image
TJ Johnson

A library is just a collection of solutions written in a way that they can be reusable. Here is the module in lodash that contains the logic for the deep clone github.com/lodash/lodash/blob/mast..., it's imported from this module github.com/lodash/lodash/blob/mast..., which is the module you would use in your code.