Created
January 26, 2017 12:04
-
-
Save oriSomething/453b2514fa4aad32318e1f6f9c7254c3 to your computer and use it in GitHub Desktop.
More dynamic NOOP
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
var nicerNoop = new Proxy(function() {}, { | |
get() { | |
return nicerNoop; | |
}, | |
apply() { | |
return nicerNoop; | |
}, | |
construct() { | |
return nicerNoop; | |
}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment