MCPcopy Create free account
hub / github.com/RubyLouvre/anu / update

Function update

test/json3.js:851–858  ·  view source on GitHub ↗
(source, property, callback)

Source from the content-addressed store, hash-verified

849
850 // Internal: Updates a traversed object member.
851 var update = function (source, property, callback) {
852 var element = walk(source, property, callback);
853 if (element === undefined) {
854 delete source[property];
855 } else {
856 source[property] = element;
857 }
858 };
859
860 // Internal: Recursively traverses a parsed JSON object, invoking the
861 // `callback` function for each value. This is an implementation of the

Callers 1

walkFunction · 0.70

Calls 1

walkFunction · 0.85

Tested by

no test coverage detected