Skip to content

Instantly share code, notes, and snippets.

@gsimone
Last active December 15, 2015 05:49
Show Gist options
  • Select an option

  • Save gsimone/5212014 to your computer and use it in GitHub Desktop.

Select an option

Save gsimone/5212014 to your computer and use it in GitHub Desktop.
function l(){
var toL = '', a = arguments, i = 0, output = '';
for (i in a){
if(typeof a[i] == 'object' && Object.prototype.toString.call( a[i] ) !== '[object Array]'){
for(property in a[i]){
toL += property + ': ' +a[i][property]+'; ';
}
} else {
toL =toL + ' ' + a[i] ;
}
}
console.log(toL);
return toL;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment