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

Function serializeObject

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

Source from the content-addressed store, hash-verified

1977/* global: toDebugString: true */
1978
1979function serializeObject(obj) {
1980 var seen = [];
1981
1982 return JSON.stringify(obj, function(key, val) {
1983 val = toJsonReplacer(key, val);
1984 if (isObject(val)) {
1985
1986 if (seen.indexOf(val) >= 0) return '<<already seen>>';
1987
1988 seen.push(val);
1989 }
1990 return val;
1991 });
1992}
1993
1994function toDebugString(obj) {
1995 if (typeof obj === 'function') {

Callers 1

toDebugStringFunction · 0.70

Calls 2

toJsonReplacerFunction · 0.70
isObjectFunction · 0.70

Tested by

no test coverage detected