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

Function toDebugString

test/angular/1.4/angular.js:2297–2306  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

2295}
2296
2297function toDebugString(obj) {
2298 if (typeof obj === 'function') {
2299 return obj.toString().replace(/ \{[\s\S]*$/, '');
2300 } else if (isUndefined(obj)) {
2301 return 'undefined';
2302 } else if (typeof obj !== 'string') {
2303 return serializeObject(obj);
2304 }
2305 return obj;
2306}
2307
2308/* global angularModule: true,
2309 version: true,

Callers 1

minErrFunction · 0.70

Calls 2

isUndefinedFunction · 0.70
serializeObjectFunction · 0.70

Tested by

no test coverage detected