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

Function walk

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

Source from the content-addressed store, hash-verified

269// cache things in pre-visit order so the references exist
270const circularSymbol = Symbol('circular');
271function walk(obj, fn) {
272 let res = {};
273 for (let k in obj) {
274 res[k] = fn(obj[k], null);
275 }
276
277 return res;
278}
279
280function recurse(obj, fn) {
281 if (obj[circularSymbol]) {

Callers 1

processCodeFunction · 0.70

Calls 1

fnFunction · 0.85

Tested by

no test coverage detected