Skip to content

Instantly share code, notes, and snippets.

@cowboy
Created July 7, 2010 01:51
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save cowboy/466188 to your computer and use it in GitHub Desktop.
Save cowboy/466188 to your computer and use it in GitHub Desktop.
for paul
// Console arguments testing
var apc = [].slice;
(function(){
console.log( apc.call(arguments) );
})( "false", 1, undefined, null, ["foo","bar","baz"], {a:1,b:2}, false );
(function(){
console.log.call( console, apc.call(arguments) );
})( "false", 1, undefined, null, ["foo","bar","baz"], {a:1,b:2}, false );
(function(){
console.log.apply( console, apc.call(arguments) );
})( "false", 1, undefined, null, ["foo","bar","baz"], {a:1,b:2}, false );
console.log( "false", 1, undefined, null, ["foo","bar","baz"], {a:1,b:2}, false );
@paulirish
Copy link

Firefox 3.5.10 with firebug 1.6X:

@cowboy
Copy link
Author

cowboy commented Jul 7, 2010

At least Firebug colors booleans and strings differently in the "plain ol' arguments" logging mode, but it's still too subtle!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment