Created
December 7, 2022 15:20
-
-
Save zachzhao1984/661291b90f07d27d7a9eb09394e12726 to your computer and use it in GitHub Desktop.
structuredClone a proxy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let p = {p: 1} | |
let proxy = new Proxy(p, {}) | |
let noProxy = {...proxy} | |
let clone = structuredClone(noProxy) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment