MCPcopy Create free account
hub / github.com/Noumena-Network/code / sliceArrayFromIndex

Function sliceArrayFromIndex

src/testing/replContractHarness.ts:149–157  ·  view source on GitHub ↗
(
  values: readonly T[],
  startIndex: number,
)

Source from the content-addressed store, hash-verified

147}
148
149export function sliceArrayFromIndex<T>(
150 values: readonly T[],
151 startIndex: number,
152): SliceResult<T> {
153 return {
154 values: values.slice(startIndex),
155 nextIndex: values.length,
156 }
157}
158
159export function sliceStringFromIndex(
160 text: string,

Calls

no outgoing calls

Tested by

no test coverage detected