function myLog() {
if(window.console && window.console.log) {
window.console.log(arguments)
}
} function myLog() {
if(window.console && window.console.log) {
window.console.log(arguments)
}
}It's not only the console object functions actually, most of the browsers choke on a [1,2,3].forEach(alert) and other [Native Code] functions.
Works both on IE9 broken console.log, and regular console.log from other vendors. Same hack as using Array.prototype.slice to convert arguments into a real array.