We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4dce97e commit 6af0b4dCopy full SHA for 6af0b4d
browser.js
@@ -103,9 +103,8 @@ function formatArgs() {
103
function log() {
104
// This hackery is required for IE8,
105
// where the `console.log` function doesn't have 'apply'
106
- return 'object' == typeof console
107
- && 'function' == typeof console.log
108
- || 'object' == typeof console.log // IE 8-9 reports console methods as objects when using the typeof operator.
+ return console
+ && console.log
109
&& Function.prototype.apply.call(console.log, console, arguments);
110
}
111
0 commit comments