Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
ops.forEach(function(op) {
ot.apply(snapshot, op);
});
// If after we've applied all updates, we haven't reached the desired version, the user must