MCPcopy
hub / github.com/yjs/yjs / splice

Method splice

src/structs/ContentJSON.js:51–55  ·  view source on GitHub ↗

* @param {number} offset * @return {ContentJSON}

(offset)

Source from the content-addressed store, hash-verified

49 * @return {ContentJSON}
50 */
51 splice (offset) {
52 const right = new ContentJSON(this.arr.slice(offset))
53 this.arr = this.arr.slice(0, offset)
54 return right
55 }
56
57 /**
58 * @param {ContentJSON} right

Callers

nothing calls this directly

Calls 1

sliceMethod · 0.45

Tested by

no test coverage detected