[HN Gopher] Deep-copying in JavaScript using structuredClone
___________________________________________________________________
Deep-copying in JavaScript using structuredClone
Author : feross
Score : 11 points
Date : 2021-12-16 18:47 UTC (4 hours ago)
(HTM) web link (web.dev)
(TXT) w3m dump (web.dev)
| mthoms wrote:
| This is sorely needed and a welcome addition.
|
| Tangent: What are they referring to when they write "The
| Platform" (capitalized) as in "The Platform now ships with ....".
|
| It sounds a little too Borg-like and creepy.
| ijelliti wrote:
| Awesome right in time
| peanut_worm wrote:
| This is very useful and definitely something I am glad to see
| added to the language, previous solutions to this problem weren't
| particularly efficient.
|
| I am confused why they made it a global function though rather
| than a static method like object.assign though
|
| also
|
| > Functions: If your object contains functions, they will be
| quiety discarded.
|
| that is a bit of a let down
___________________________________________________________________
(page generated 2021-12-16 23:01 UTC)