MCPcopy Index your code
hub / github.com/clns/node-commit-msg / removeCircularRefs

Function removeCircularRefs

test/nlp-parser.js:146–156  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

144}); // describe nlp-parser
145
146function removeCircularRefs(obj) {
147 var circularRefs = ['parent'];
148 for (var i in obj) {
149 if (circularRefs.indexOf(i) !== -1) {
150 delete obj[i];
151 }
152 if (obj.hasOwnProperty(i) && typeof(obj[i]) == 'object') {
153 removeCircularRefs(obj[i]);
154 }
155 }
156}

Callers 1

nlp-parser.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected