MCPcopy
hub / github.com/yjs/yjs / slice

Method slice

src/ytype.js:1255–1257  ·  view source on GitHub ↗

* Returns a portion of this YXmlFragment into a JavaScript Array selected * from start to end (end not included). * * @param {number} [start] * @param {number} [end] * @return {Array >}

(start = 0, end = this.length)

Source from the content-addressed store, hash-verified

1253 * @return {Array<delta.DeltaConfGetChildren<DConf>>}
1254 */
1255 slice (start = 0, end = this.length) {
1256 return typeListSlice(this, start, end)
1257 }
1258
1259 /**
1260 * @todo refactor this, this should use getContent only!

Callers 7

insertContentHelperFunction · 0.45
toDeltaMethod · 0.45
testSliceFunction · 0.45
validateIdMapFunction · 0.45
checkUpdateCasesFunction · 0.45
y-text.tests.jsFile · 0.45

Calls 1

typeListSliceFunction · 0.85

Tested by

no test coverage detected