Skip to content

Instantly share code, notes, and snippets.

@tomasperezv
Last active November 13, 2016 12:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomasperezv/f07f3674778407a87b320cf2b93b791a to your computer and use it in GitHub Desktop.
Save tomasperezv/f07f3674778407a87b320cf2b93b791a to your computer and use it in GitHub Desktop.
/**
* Returning true for letting the property value assignment to succeed.
*/
set(obj: Object, key: string): boolean {
self._registerAccess(key, typeof target[key] !== 'undefined');
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment