Why do console.log() polyfills not use Function.apply()?

Viewed 2053

I've been looking at some of the popular console.log() wrappers/polyfills:

I notice that all of them accept multiple arguments, but they all do something like this:

console.log(arguments);

Which results in output like this (in Chrome):

<code>console.log(['foo', 'bar', $('body')])</code>

Whereas, at least in a modern browser like Chrome or Firefox, console.log() also accepts multiple arguments, so that this would produce (IMHO) superior output:

console.log.apply(console, arguments)

Which results in output like this (in Chrome):

<code>console.log.apply(console, ['foo', 'bar', $('body')])</code>

Is there any particular reason why I should avoid using console.log.apply() with multiple arguments? Or this this just a matter of taste or saving bytes?

2 Answers
Related