Support for `structuredClone`
See original GitHub issueNew DOM api structuredClone
should be added.
MDN: https://developer.mozilla.org/en-US/docs/Web/API/structuredClone
Issue Analytics
- State:
- Created 2 years ago
- Reactions:10
- Comments:12 (6 by maintainers)
Top Results From Across the Web
"structuredClone" | Can I use... Support tables for ... - CanIUse
"Can I use" provides up-to-date browser support tables for support of front-end web technologies on desktop and mobile web browsers.
Read more >structuredClone() - Web APIs - MDN Web Docs
The global structuredClone() method creates a deep clone of a given value using the structured ... It also supports circular references, as shown...
Read more >Deep-copying in JavaScript using structuredClone - web.dev
Structured cloning can handle cyclical data structures, support many built-in data types and is generally more robust and often faster. However, ...
Read more >Deep Cloning with structuredClone() in JavaScript
The global structuredClone() method creates a deep clone of a given value using the structured clone algorithm. It is compatible with all the ......
Read more >`structuredClone()`: deeply copying objects in JavaScript - 2ality
structuredClone () is a new function that will soon be supported by most browsers, Node.js and Deno. It creates deep copies of objects....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This type declaration works for me:
readonly
?Playground
Any chance we could get a typed return value in the future?
Something like
declare function structuredClone(value: T, options?: StructuredSerializeOptions): T;
?I know that
structuredClone
is not returning a strictly identical object (functions are silently removed for instance). Maybe that’s the reason to use: any
here?