DEV Community

Discussion on: Important Javascript functions you have to know to be a better developer

Collapse
peerreynders profile image
peerreynders

Node.js 17.0.0 added structuredClone(value[, options])

Before that use v8.serialize(value) and v8.deserialize(buffer).

Then there is flatted which adds recursive references and RecursiveMap on top of JSON (still no functions, symbols, etc.).

Collapse
asapsonter profile image
Sam Sonter Author

noted. thanks