UNPKG

json-joy

Version:

Collection of libraries for building collaborative editing apps.

11 lines (10 loc) 287 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.encode = encode; function encode(ops) { const operations = []; const length = ops.length; for (let i = 0; i < length; i++) operations.push(ops[i].toJson()); return operations; }