DEV Community

Discussion on: Do you still use Lodash and Underscore in 2020?

Collapse
 
viacheslavzyrianov profile image
Zyrianov Viacheslav

What about objects deep cloning?

Collapse
 
cullophid profile image
Andreas Møller

I has been year since I needed to deeply clone an object. Is this a common use case for you?

Collapse
 
viacheslavzyrianov profile image
Zyrianov Viacheslav

It's not about frequency of using, but having a possibility to use it.

Collapse
 
okslutsiv profile image
Oksana

in case of multi-level objects with no methods JSON.parse(JSON.stringify(obj)) does the perfect job.