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

Function toDebugString

lib/test/angular/1.4.3/angular.js:2233–2242  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

2231}
2232
2233function toDebugString(obj) {
2234 if (typeof obj === 'function') {
2235 return obj.toString().replace(/ \{[\s\S]*$/, '');
2236 } else if (typeof obj === 'undefined') {
2237 return 'undefined';
2238 } else if (typeof obj !== 'string') {
2239 return serializeObject(obj);
2240 }
2241 return obj;
2242}
2243
2244/* global angularModule: true,
2245 version: true,

Callers 1

minErrFunction · 0.70

Calls 1

serializeObjectFunction · 0.70

Tested by

no test coverage detected