Skip to content

Instantly share code, notes, and snippets.

@soquel
soquel / shorten_console_log.js
Created February 27, 2013 22:01
Shorten console.log() to l()
function l() {
try {
// this works in Firefox/Opera
console.log.apply( this, arguments );
} catch (e) {
// this is for Chrome/IE
var args = [], i = 0;
while( i++ < arguments.length )
args.push('arg' + i);