Created
November 23, 2018 03:49
-
-
Save melvinodsa/6549be73564026326dc2f393f7be0cf8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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