Skip to content

Instantly share code, notes, and snippets.

@jboulhous
Created July 31, 2013 12:34
Show Gist options
  • Save jboulhous/6121604 to your computer and use it in GitHub Desktop.
Save jboulhous/6121604 to your computer and use it in GitHub Desktop.
a cool loggin function that is cool
var log = function(first){
return function(){
var args = Array.prototype.slice.apply(arguments);
console.log(first,args);
};
};
/*
Usage
log('loggin : ')('foo','bar')
loggin: ["foo", "bar"]
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment