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

Function serializeObject

lib/test/angular/1.5.0/angular.js:2288–2301  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

2286/* global: toDebugString: true */
2287
2288function serializeObject(obj) {
2289 var seen = [];
2290
2291 return JSON.stringify(obj, function(key, val) {
2292 val = toJsonReplacer(key, val);
2293 if (isObject(val)) {
2294
2295 if (seen.indexOf(val) >= 0) return '...';
2296
2297 seen.push(val);
2298 }
2299 return val;
2300 });
2301}
2302
2303function toDebugString(obj) {
2304 if (typeof obj === 'function') {

Callers 1

toDebugStringFunction · 0.70

Calls 2

toJsonReplacerFunction · 0.70
isObjectFunction · 0.70

Tested by

no test coverage detected