MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / removeAtIndex

Function removeAtIndex

packages/core/src/forms/internal/arrayState.ts:41–45  ·  view source on GitHub ↗
(value: ReadonlyArray<TValue>, index: number)

Source from the content-addressed store, hash-verified

39}
40
41function removeAtIndex<TValue>(value: ReadonlyArray<TValue>, index: number): TValue[] {
42 const next = [...value];
43 next.splice(index, 1);
44 return next;
45}
46
47function moveIndex<TValue>(value: ReadonlyArray<TValue>, from: number, to: number): TValue[] {
48 const next = [...value];

Callers 1

removeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected