Comment

Comment by sesm

> Can anyone describe a compelling use case for "deep cloning" objects in JavaScript

Sure. A library accepts an object as function argument (for example ‘params’) and then uses it inside. Modifying users object in-place would be a bad idea.

parent sesm 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton