MCPcopy Index your code
hub / github.com/adobe/react-spectrum / recurse

Function recurse

packages/dev/parcel-packager-docs/DocsPackager.js:280–291  ·  view source on GitHub ↗
(obj, fn)

Source from the content-addressed store, hash-verified

278}
279
280function recurse(obj, fn) {
281 if (obj[circularSymbol]) {
282 return {
283 type: 'link',
284 id: obj.id
285 };
286 }
287 obj[circularSymbol] = true;
288 let res = visitChildren(obj, fn);
289 obj[circularSymbol] = false;
290 return res;
291}
292
293function visitChildren(obj, fn) {
294 let properties = null;

Callers 1

fnFunction · 0.70

Calls 1

visitChildrenFunction · 0.85

Tested by

no test coverage detected