Skip to content

Instantly share code, notes, and snippets.

@zachzhao1984
Created December 7, 2022 15:20
Show Gist options
  • Save zachzhao1984/661291b90f07d27d7a9eb09394e12726 to your computer and use it in GitHub Desktop.
Save zachzhao1984/661291b90f07d27d7a9eb09394e12726 to your computer and use it in GitHub Desktop.
structuredClone a proxy
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