Skip to content

Instantly share code, notes, and snippets.

@nybblr
Created Oct 28, 2017
Embed
What would you like to do?
Metaproxy: The proxy that doesn't do anything
/* Metaproxy
* The proxy that doesn't do anything
**/
let target = { a: 1, b: 2, c: 3 }
let handler = new Proxy({}, {
get: (...args) => Reflect[args[1]](...args)
})
let pixie = new Proxy(target, handler)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment