MCPcopy Create free account
hub / github.com/angular-ui/ui-grid / consoleLog

Function consoleLog

lib/test/angular/1.7.0/angular.js:14984–14998  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

14982 }
14983
14984 function consoleLog(type) {
14985 var console = $window.console || {},
14986 logFn = console[type] || console.log || noop;
14987
14988 return function() {
14989 var args = [];
14990 forEach(arguments, function(arg) {
14991 args.push(formatError(arg));
14992 });
14993 // Support: IE 9 only
14994 // console methods don't inherit from Function.prototype in IE 9 so we can't
14995 // call `logFn.apply(console, args)` directly.
14996 return Function.prototype.apply.call(logFn, console, args);
14997 };
14998 }
14999 }];
15000}
15001

Callers 1

$LogProviderFunction · 0.70

Calls 2

forEachFunction · 0.70
formatErrorFunction · 0.70

Tested by

no test coverage detected