Skip to content

Instantly share code, notes, and snippets.

@dshaw
Created October 16, 2011 04:17
Show Gist options
  • Save dshaw/1290501 to your computer and use it in GitHub Desktop.
Save dshaw/1290501 to your computer and use it in GitHub Desktop.
fp.js snippets
// @littlecalculist
var bind = Function.prototype.call.bind(Function.prototype.bind)
var call = bind(Function.prototype.call, Function.prototype.call)
var apply = bind(Function.prototype.call, Function.prototype.apply)
// @cowboy
var typeorama = Function.prototype.call.bind(Object.prototype.toString)
// @dshaw
var toString = Function.prototype.call.bind(Object.prototype.toString)
var type = Function.prototype.call.bind(Object.prototype.toString)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment