This looks like a good book but boy, is JavaScript convoluted. Not bashing it. Just read the chapters about shallow and deep copies.
https://exploringjs.com/deep-js/ch_copying-objects-and-array...
https://exploringjs.com/deep-js/ch_copying-objects-and-array...
The reason the article you linked is so long (instead of just being the standard OOP shallow- vs deep-copy disclaimer) seems to be because JS objects and classes are just dictionaries (in the Python sense of the word) with certain magic fields to control dispatch, inheritance, etc. The docs need to take care to explain how certain operations interact with those magic fields. So, still convoluted, but IMO better than if it were convoluted because everything was a built-in special case under the hood.
At least that's my impression as someone who doesn't write a lot of JS. Happy to be corrected.