Skip to content

Instantly share code, notes, and snippets.

@jugglinmike
Last active December 28, 2015 20:09
Show Gist options
  • Save jugglinmike/7555873 to your computer and use it in GitHub Desktop.
Save jugglinmike/7555873 to your computer and use it in GitHub Desktop.
Factory for Logging Functions
var LogFactory = console.log.bind(console).bind.bind(console.log, console);
var log8 = LogFactory(8);
log8(); // 8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment