Created
July 31, 2013 12:34
-
-
Save jboulhous/6121604 to your computer and use it in GitHub Desktop.
a cool loggin function that is cool
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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