MCPcopy Create free account
hub / github.com/SimHacker/micropolis / walk

Function walk

turbogears/micropolis/htdocs/static/javascript/all_pretty.js:384–393  ·  view source on GitHub ↗
(holder, key)

Source from the content-addressed store, hash-verified

382 var j;
383
384 function walk(holder, key) {
385 var k, v, value = holder[key];
386 if (value && typeof value === 'object') for (k in value) if (Object.hasOwnProperty.call(value, k)) {
387 v = walk(value, k);
388 if (v !== undefined) {
389 value[k] = v;
390 } else delete value[k];
391 }
392 return reviver.call(holder, key, value);
393 }
394 cx.lastIndex = 0;
395 if (cx.test(text)) text = text.replace(cx, function (a) {
396 return '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4);

Callers 1

all_pretty.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected