MCPcopy
hub / github.com/angular-ui/ui-grid / toDebugString

Function toDebugString

lib/test/angular/1.8.0/angular.js:2701–2710  ·  view source on GitHub ↗
(obj, maxDepth)

Source from the content-addressed store, hash-verified

2699}
2700
2701function toDebugString(obj, maxDepth) {
2702 if (typeof obj === 'function') {
2703 return obj.toString().replace(/ \{[\s\S]*$/, '');
2704 } else if (isUndefined(obj)) {
2705 return 'undefined';
2706 } else if (typeof obj !== 'string') {
2707 return serializeObject(obj, maxDepth);
2708 }
2709 return obj;
2710}
2711
2712/* global angularModule: true,
2713 version: true,

Callers 2

minErrFunction · 0.70
processChecksFunction · 0.70

Calls 2

isUndefinedFunction · 0.70
serializeObjectFunction · 0.70

Tested by

no test coverage detected