Skip to content

Instantly share code, notes, and snippets.

@jneen
Created May 3, 2011 19:05
Show Gist options
  • Save jneen/953984 to your computer and use it in GitHub Desktop.
Save jneen/953984 to your computer and use it in GitHub Desktop.
Instantly awesome javascript
Object.prototype.send = function(fn) { return fn.call(this, this); };
Object.prototype.tap = function(fn) { this.send(fn); return this; };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment