MCPcopy
hub / github.com/tinyplex/tinybase / arrayFind

Function arrayFind

src/common/array.ts:84–87  ·  view source on GitHub ↗
(
  array: Value[],
  cb: (value: Value, index: number) => boolean,
)

Source from the content-addressed store, hash-verified

82): Value[] => array.filter(cb);
83
84export const arrayFind = <Value>(
85 array: Value[],
86 cb: (value: Value, index: number) => boolean,
87): Value | undefined => array.find(cb);
88
89export const arrayClear = <Value>(array: Value[], to?: number): Value[] =>
90 array.splice(0, to);

Callers 2

unwrapSchemaFunction · 0.90
unwrapSchemaFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…