MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / toDebugString

Function toDebugString

code/songhop/www/lib/angular/angular.js:1994–2003  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

1992}
1993
1994function toDebugString(obj) {
1995 if (typeof obj === 'function') {
1996 return obj.toString().replace(/ \{[\s\S]*$/, '');
1997 } else if (typeof obj === 'undefined') {
1998 return 'undefined';
1999 } else if (typeof obj !== 'string') {
2000 return serializeObject(obj);
2001 }
2002 return obj;
2003}
2004
2005/* global angularModule: true,
2006 version: true,

Callers 1

minErrFunction · 0.70

Calls 1

serializeObjectFunction · 0.70

Tested by

no test coverage detected