Skip to content

Instantly share code, notes, and snippets.

@melvinodsa
Created November 23, 2018 03:49
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 melvinodsa/6549be73564026326dc2f393f7be0cf8 to your computer and use it in GitHub Desktop.
Save melvinodsa/6549be73564026326dc2f393f7be0cf8 to your computer and use it in GitHub Desktop.
const Undefined = new Proxy(function() {}, {
get(target, key, receiver) {
if (key === 'name') {
return 'Undefined';
}
return Undefined;
},
apply() {
return Undefined;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment