json-joy
Version:
Collection of libraries for building collaborative editing apps.
12 lines • 346 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.firstVis = void 0;
/** Find the first visible chunk, if any. */
const firstVis = (rga) => {
let curr = rga.first();
while (curr && curr.del)
curr = rga.next(curr);
return curr;
};
exports.firstVis = firstVis;
//# sourceMappingURL=util.js.map