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

Function serializeObject

test/angular/1.3/angular.js:2013–2026  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

2011/* global: toDebugString: true */
2012
2013function serializeObject(obj) {
2014 var seen = [];
2015
2016 return JSON.stringify(obj, function(key, val) {
2017 val = toJsonReplacer(key, val);
2018 if (isObject(val)) {
2019
2020 if (seen.indexOf(val) >= 0) return '<<already seen>>';
2021
2022 seen.push(val);
2023 }
2024 return val;
2025 });
2026}
2027
2028function toDebugString(obj) {
2029 if (typeof obj === 'function') {

Callers 1

toDebugStringFunction · 0.70

Calls 2

toJsonReplacerFunction · 0.70
isObjectFunction · 0.70

Tested by

no test coverage detected