News for hackers. Stuff that matters.
Re:Console.log with style by jQueryIsAwesome on Friday April 12, 2013 @09:56PM (#5542214)
I found a way... well, sort of:

    var log = function(){
        args = [].slice.call(arguments);
        args.unshift(console);
        return console.log.bind.apply(console.log, args) 
    }
But you have to add extra parenthesis at the end, hopefully is not too much overhead for most devs.

    log("message")()

There are no comments on this comment yet.