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>

Removes the element at index N from S.

Type Parameters

  • N extends number
  • S extends ReadonlyArray<unknown>