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

Function serializeObject

test/angular/1.5/angular.js:2433–2446  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

2431/* global toDebugString: true */
2432
2433function serializeObject(obj) {
2434 var seen = [];
2435
2436 return JSON.stringify(obj, function(key, val) {
2437 val = toJsonReplacer(key, val);
2438 if (isObject(val)) {
2439
2440 if (seen.indexOf(val) >= 0) return '...';
2441
2442 seen.push(val);
2443 }
2444 return val;
2445 });
2446}
2447
2448function toDebugString(obj) {
2449 if (typeof obj === 'function') {

Callers 1

toDebugStringFunction · 0.70

Calls 2

toJsonReplacerFunction · 0.70
isObjectFunction · 0.70

Tested by

no test coverage detected