MCPcopy
hub / github.com/yjs/yjs / push

Method push

src/ytype.js:1214–1216  ·  view source on GitHub ↗

* Appends content to this YArray. * * @param {Array >|delta.DeltaConfGetText } content Array of content to append. * * @todo Use the following implementation in all types.

(content)

Source from the content-addressed store, hash-verified

1212 * @todo Use the following implementation in all types.
1213 */
1214 push (content) {
1215 this.insert(this.length, content)
1216 }
1217
1218 /**
1219 * Prepends content to this YArray.

Callers 15

markPositionFunction · 0.80
getTypeChildrenFunction · 0.80
callTypeObserversFunction · 0.80
toDeltaMethod · 0.80
toArrayMethod · 0.80
toStringMethod · 0.80
typeListSliceFunction · 0.80
addEventHandlerListenerFunction · 0.80
addMethod · 0.80
sliceMethod · 0.80
_diffSetFunction · 0.80

Calls 1

insertMethod · 0.95

Tested by

no test coverage detected