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

Function consoleLog

lib/test/angular/1.6.7/angular.js:14782–14796  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

14780 }
14781
14782 function consoleLog(type) {
14783 var console = $window.console || {},
14784 logFn = console[type] || console.log || noop;
14785
14786 return function() {
14787 var args = [];
14788 forEach(arguments, function(arg) {
14789 args.push(formatError(arg));
14790 });
14791 // Support: IE 9 only
14792 // console methods don't inherit from Function.prototype in IE 9 so we can't
14793 // call `logFn.apply(console, args)` directly.
14794 return Function.prototype.apply.call(logFn, console, args);
14795 };
14796 }
14797 }];
14798}
14799

Callers 1

$LogProviderFunction · 0.70

Calls 2

forEachFunction · 0.70
formatErrorFunction · 0.70

Tested by

no test coverage detected