MCPcopy Index your code
hub / github.com/caolan/nodeunit / walk

Function walk

examples/browser/nodeunit.js:421–440  ·  view source on GitHub ↗
(holder, key)

Source from the content-addressed store, hash-verified

419 var j;
420
421 function walk(holder, key) {
422
423// The walk method is used to recursively walk the resulting structure so
424// that modifications can be made.
425
426 var k, v, value = holder[key];
427 if (value && typeof value === 'object') {
428 for (k in value) {
429 if (Object.hasOwnProperty.call(value, k)) {
430 v = walk(value, k);
431 if (v !== undefined) {
432 value[k] = v;
433 } else {
434 delete value[k];
435 }
436 }
437 }
438 }
439 return reviver.call(holder, key, value);
440 }
441
442
443// Parsing happens in four stages. In the first stage, we replace certain

Callers 1

nodeunit.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…