MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / hasArrayItemWithId

Function hasArrayItemWithId

projects/openade-module/src/yjsMutation.ts:276–281  ·  view source on GitHub ↗
(array: Y.Array<unknown>, id: string)

Source from the content-addressed store, hash-verified

274}
275
276function hasArrayItemWithId(array: Y.Array<unknown>, id: string): boolean {
277 return array.toArray().some((item) => {
278 const plain = toPlain(item)
279 return isRecord(plain) && plain.id === id
280 })
281}
282
283function getHyperPlanSubExecutionMap(event: Y.Map<unknown>, stepId: string): Y.Map<unknown> | null {
284 const subExecutions = event.get("hyperplanSubExecutions")

Callers 2

appendActionStreamEventFunction · 0.85

Calls 2

toPlainFunction · 0.70
isRecordFunction · 0.70

Tested by

no test coverage detected