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

Function consoleLog

test/angular/1.6/angular.js:14949–14963  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

14947 }
14948
14949 function consoleLog(type) {
14950 var console = $window.console || {},
14951 logFn = console[type] || console.log || noop;
14952
14953 return function() {
14954 var args = [];
14955 forEach(arguments, function(arg) {
14956 args.push(formatError(arg));
14957 });
14958 // Support: IE 9 only
14959 // console methods don't inherit from Function.prototype in IE 9 so we can't
14960 // call `logFn.apply(console, args)` directly.
14961 return Function.prototype.apply.call(logFn, console, args);
14962 };
14963 }
14964 }];
14965}
14966

Callers 1

$LogProviderFunction · 0.70

Calls 2

forEachFunction · 0.70
formatErrorFunction · 0.70

Tested by

no test coverage detected