Type Alias DeleteAt<N, S>
DeleteAt<N, S>: IfElse<Or<Complement<IsNonEmptyArray<S>>, And<IfExtends<S["length"], N>, IfExtends<0, N>>>, ProtectIfNonEmptyArray<S>, N extends unknown ? IfElse<IsNegative<N>, ProcessNegative<N, S>, ProcessPositive<N, S>> : never> Type Parameters
- N extends number
- S extends ReadonlyArray<unknown>
Removes the element at index
N
fromS
.