MCPcopy
hub / github.com/angular-ui/ui-grid / serializeObject

Function serializeObject

lib/test/angular/1.4.3/angular.js:2218–2231  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

2216/* global: toDebugString: true */
2217
2218function serializeObject(obj) {
2219 var seen = [];
2220
2221 return JSON.stringify(obj, function(key, val) {
2222 val = toJsonReplacer(key, val);
2223 if (isObject(val)) {
2224
2225 if (seen.indexOf(val) >= 0) return '<<already seen>>';
2226
2227 seen.push(val);
2228 }
2229 return val;
2230 });
2231}
2232
2233function toDebugString(obj) {
2234 if (typeof obj === 'function') {

Callers 1

toDebugStringFunction · 0.70

Calls 2

toJsonReplacerFunction · 0.70
isObjectFunction · 0.70

Tested by

no test coverage detected