MCPcopy Create free account
hub / github.com/share/sharedb / filterOpsInPlaceBeforeTimestamp

Function filterOpsInPlaceBeforeTimestamp

lib/backend.js:951–960  ·  view source on GitHub ↗
(ops, timestamp)

Source from the content-addressed store, hash-verified

949}
950
951function filterOpsInPlaceBeforeTimestamp(ops, timestamp) {
952 for (var i = 0; i < ops.length; i++) {
953 var op = ops[i];
954 var opTimestamp = op.m && op.m.ts;
955 if (opTimestamp > timestamp) {
956 ops.length = i;
957 return;
958 }
959 }
960}

Callers 1

backend.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…