mleibman/SlickGrid — comment on commit b9592ca7caca24c265cab972daed178bcbba66b4
File:  line 0
By simonlindholm:

All the listed console functions don't have to exist just because console.log does. For example, Firefox's console lacks assert, dirxml, count, profile, profileEnd. You should really do something like this instead:

if (!window.console) window.console = {};
var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
"group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
for (var i = 0; i < names.length; ++i) {
if (!console[names[i]])
console[names[i]] = function() {};
}

Also, groupCollapsed, clear, table and exception are missing from the list.