What is the correct way to polyfill structuredClone? #15619
Answered
by
JLHwung
dragonlobster
asked this question in
Q&A
-
Hello, I am attempting to transpile code to ES5 and want to use structuredClone, however I'm in an runtime environment does not support it (goja). So I wish to polyfill this function, could someone point me in the right direction on how to achieve this. Thank you |
Beta Was this translation helpful? Give feedback.
Answered by
JLHwung
May 9, 2023
Replies: 2 comments 1 reply
-
You can try https://github.com/ungap/structured-clone. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
dragonlobster
-
It's available from |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can try https://github.com/ungap/structured-clone.