MCPcopy Index your code
hub / github.com/share/sharedb / getInserted

Function getInserted

lib/query-emitter.js:324–335  ·  view source on GitHub ↗
(diff)

Source from the content-addressed store, hash-verified

322 };
323
324function getInserted(diff) {
325 var inserted = [];
326 for (var i = 0; i < diff.length; i++) {
327 var item = diff[i];
328 if (item instanceof arraydiff.InsertDiff) {
329 for (var j = 0; j < item.values.length; j++) {
330 inserted.push(item.values[j]);
331 }
332 }
333 }
334 return inserted;
335}
336
337function mapDiff(idsDiff, snapshotMap) {
338 var diff = [];

Callers 1

query-emitter.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…