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

Function toDebugString

test/angular/1.6/angular.js:2682–2691  ·  view source on GitHub ↗
(obj, maxDepth)

Source from the content-addressed store, hash-verified

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

Callers 2

minErrFunction · 0.70
processChecksFunction · 0.70

Calls 2

isUndefinedFunction · 0.70
serializeObjectFunction · 0.70

Tested by

no test coverage detected