json-joy
Version:
Collection of libraries for building collaborative editing apps.
11 lines • 378 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.encode = encode;
function encode(ops, { stringOpcode = false } = {}) {
const operations = [];
const length = ops.length;
for (let i = 0; i < length; i++)
operations.push(ops[i].toCompact(undefined, stringOpcode));
return operations;
}
//# sourceMappingURL=encode.js.map