MCPcopy Index your code
hub / github.com/tinyplex/tinybase / arrayClear

Function arrayClear

src/common/array.ts:89–90  ·  view source on GitHub ↗
(array: Value[], to?: number)

Source from the content-addressed store, hash-verified

87): Value | undefined => array.find(cb);
88
89export const arrayClear = <Value>(array: Value[], to?: number): Value[] =>
90 array.splice(0, to);
91
92export const arrayPush = <Value>(array: Value[], ...values: Value[]): number =>
93 array.push(...values);

Callers 2

clearCheckpointIdsFunction · 0.90
destroyFunction · 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…