MCPcopy Create free account
hub / github.com/FernhillFable/cluster / filterOpsInPlaceBeforeTimestamp

Function filterOpsInPlaceBeforeTimestamp

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

Source from the content-addressed store, hash-verified

940}
941
942function filterOpsInPlaceBeforeTimestamp(ops, timestamp) {
943 for (var i = 0; i < ops.length; i++) {
944 var op = ops[i];
945 var opTimestamp = op.m && op.m.ts;
946 if (opTimestamp > timestamp) {
947 ops.length = i;
948 return;
949 }
950 }
951}

Callers 1

backend.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected