MCPcopy Index your code
hub / github.com/angular-ui/ui-grid / consoleLog

Function consoleLog

lib/test/angular/1.8.0/angular.js:15623–15637  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

15621 }
15622
15623 function consoleLog(type) {
15624 var console = $window.console || {},
15625 logFn = console[type] || console.log || noop;
15626
15627 return function() {
15628 var args = [];
15629 forEach(arguments, function(arg) {
15630 args.push(formatError(arg));
15631 });
15632 // Support: IE 9 only
15633 // console methods don't inherit from Function.prototype in IE 9 so we can't
15634 // call `logFn.apply(console, args)` directly.
15635 return Function.prototype.apply.call(logFn, console, args);
15636 };
15637 }
15638 }];
15639}
15640

Callers 1

$LogProviderFunction · 0.70

Calls 2

forEachFunction · 0.70
formatErrorFunction · 0.70

Tested by

no test coverage detected