Skip to content

Instantly share code, notes, and snippets.

@tomasperezv
Last active November 13, 2016 12:06
Show Gist options
  • Select an option

  • Save tomasperezv/869b3510db8f1bdb72b7aedab3aff9b7 to your computer and use it in GitHub Desktop.

Select an option

Save tomasperezv/869b3510db8f1bdb72b7aedab3aff9b7 to your computer and use it in GitHub Desktop.
const proxyHandler = {
/**
* Intercepts access operations on properties and methods.
*/
get(obj: Object, key: string): Object {
...
},
/**
* Intercepts set operations over properties and methods.
*/
set(obj: Object, key: string): boolean {
...
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment