MCPcopy Index your code
hub / github.com/angular-ui/ui-router / toDebugString

Function toDebugString

test/angular/1.3/angular.js:2028–2037  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

2026}
2027
2028function toDebugString(obj) {
2029 if (typeof obj === 'function') {
2030 return obj.toString().replace(/ \{[\s\S]*$/, '');
2031 } else if (typeof obj === 'undefined') {
2032 return 'undefined';
2033 } else if (typeof obj !== 'string') {
2034 return serializeObject(obj);
2035 }
2036 return obj;
2037}
2038
2039/* global angularModule: true,
2040 version: true,

Callers 1

minErrFunction · 0.70

Calls 1

serializeObjectFunction · 0.70

Tested by

no test coverage detected