Skip to content

Instantly share code, notes, and snippets.

@oriSomething
Created January 26, 2017 12:04
Show Gist options
  • Save oriSomething/453b2514fa4aad32318e1f6f9c7254c3 to your computer and use it in GitHub Desktop.
Save oriSomething/453b2514fa4aad32318e1f6f9c7254c3 to your computer and use it in GitHub Desktop.
More dynamic NOOP
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