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

Function toDebugString

test/angular/1.7/angular.js:2680–2689  ·  view source on GitHub ↗
(obj, maxDepth)

Source from the content-addressed store, hash-verified

2678}
2679
2680function toDebugString(obj, maxDepth) {
2681 if (typeof obj === 'function') {
2682 return obj.toString().replace(/ \{[\s\S]*$/, '');
2683 } else if (isUndefined(obj)) {
2684 return 'undefined';
2685 } else if (typeof obj !== 'string') {
2686 return serializeObject(obj, maxDepth);
2687 }
2688 return obj;
2689}
2690
2691/* global angularModule: true,
2692 version: true,

Callers 2

minErrFunction · 0.70
processChecksFunction · 0.70

Calls 2

isUndefinedFunction · 0.70
serializeObjectFunction · 0.70

Tested by

no test coverage detected