MCPcopy
hub / github.com/yjs/yjs / get

Method get

src/ytype.js:1243–1245  ·  view source on GitHub ↗

* Returns the i-th element from a YArray. * * @param {number} index The index of the element to return from the YArray * @return {delta.DeltaConfGetChildren }

(index)

Source from the content-addressed store, hash-verified

1241 * @return {delta.DeltaConfGetChildren<DConf>}
1242 */
1243 get (index) {
1244 return typeListGet(this, index)
1245 }
1246
1247 /**
1248 * Returns a portion of this YXmlFragment into a JavaScript Array selected

Callers 15

insertNegatedAttributesFunction · 0.45
insertAttributesFunction · 0.45
toDeltaMethod · 0.45
typeMapDeleteFunction · 0.45
typeMapSetFunction · 0.45
typeMapGetFunction · 0.45
typeMapGetDeltaFunction · 0.45
typeMapHasFunction · 0.45
typeMapGetSnapshotFunction · 0.45
typeMapGetAllSnapshotFunction · 0.45
y-array.tests.jsFile · 0.45
initFunction · 0.45

Calls 1

typeListGetFunction · 0.85

Tested by

no test coverage detected