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

Function consoleLog

test/angular/1.7/angular.js:15558–15572  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

15556 }
15557
15558 function consoleLog(type) {
15559 var console = $window.console || {},
15560 logFn = console[type] || console.log || noop;
15561
15562 return function() {
15563 var args = [];
15564 forEach(arguments, function(arg) {
15565 args.push(formatError(arg));
15566 });
15567 // Support: IE 9 only
15568 // console methods don't inherit from Function.prototype in IE 9 so we can't
15569 // call `logFn.apply(console, args)` directly.
15570 return Function.prototype.apply.call(logFn, console, args);
15571 };
15572 }
15573 }];
15574}
15575

Callers 1

$LogProviderFunction · 0.70

Calls 2

forEachFunction · 0.70
formatErrorFunction · 0.70

Tested by

no test coverage detected