MCPcopy
hub / github.com/yjs/yjs / forEach

Method forEach

src/ytype.js:1356–1358  ·  view source on GitHub ↗

* Executes a provided function once on every element of this YArray. * * @param {(child:delta.DeltaConfGetChildren |delta.DeltaConfGetText ,index:number)=>any} f Function that produces an element of the new Array

(f)

Source from the content-addressed store, hash-verified

1354 * @param {(child:delta.DeltaConfGetChildren<DConf>|delta.DeltaConfGetText<DConf>,index:number)=>any} f Function that produces an element of the new Array
1355 */
1356 forEach (f) {
1357 return this.toArray().forEach(f)
1358 }
1359
1360 /**
1361 * Executes a provided function on once on every key-value pair.

Callers 15

insertNegatedAttributesFunction · 0.45
insertContentFunction · 0.45
forEachAttrMethod · 0.45
typeMapGetAllFunction · 0.45
typeMapGetDeltaFunction · 0.45
typeMapGetAllSnapshotFunction · 0.45
broadcastMessageFunction · 0.45
connectMethod · 0.45
reconnectAllMethod · 0.45
disconnectAllMethod · 0.45
reconnectRandomMethod · 0.45

Calls 1

toArrayMethod · 0.95

Tested by

no test coverage detected