Skip to content

Instantly share code, notes, and snippets.

@tylerthebuildor
Forked from cowboy/console-args-test.js
Last active September 5, 2015 17:35
Show Gist options
  • Save tylerthebuildor/60170f320b0c9e7d12d4 to your computer and use it in GitHub Desktop.
Save tylerthebuildor/60170f320b0c9e7d12d4 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 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment