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

Function serializeObject

test/angular/1.4/angular.js:2282–2295  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

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

Callers 1

toDebugStringFunction · 0.70

Calls 2

toJsonReplacerFunction · 0.70
isObjectFunction · 0.70

Tested by

no test coverage detected