MCPcopy Create free account
hub / github.com/cafebazaar/blacksmith / toDebugString

Function toDebugString

web/static/bower_components/angular/angular.js:2261–2270  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

2259}
2260
2261function toDebugString(obj) {
2262 if (typeof obj === 'function') {
2263 return obj.toString().replace(/ \{[\s\S]*$/, '');
2264 } else if (isUndefined(obj)) {
2265 return 'undefined';
2266 } else if (typeof obj !== 'string') {
2267 return serializeObject(obj);
2268 }
2269 return obj;
2270}
2271
2272/* global angularModule: true,
2273 version: true,

Callers 1

minErrFunction · 0.85

Calls 2

isUndefinedFunction · 0.85
serializeObjectFunction · 0.85

Tested by

no test coverage detected