MCPcopy Create free account
hub / github.com/PrairieLearn/PrairieLearn / update

Function update

public/javascripts/socket.io.js:2766–2773  ·  view source on GitHub ↗
(source, property, callback)

Source from the content-addressed store, hash-verified

2764
2765 // Internal: Updates a traversed object member.
2766 var update = function (source, property, callback) {
2767 var element = walk(source, property, callback);
2768 if (element === undef) {
2769 delete source[property];
2770 } else {
2771 source[property] = element;
2772 }
2773 };
2774
2775 // Internal: Recursively traverses a parsed JSON object, invoking the
2776 // `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