Returns a new array with the element at the specified position removed.
DeleteAt
const a = [1, 2, 3, 4, 5];const b = deleteAt(2)(a); // [1, 2, 4, 5]const c = deleteAt(-2)(a); // [1, 2, 3, 5]const d = deleteAt(10)(a); // [1, 2, 3, 4, 5] Copy
const a = [1, 2, 3, 4, 5];const b = deleteAt(2)(a); // [1, 2, 4, 5]const c = deleteAt(-2)(a); // [1, 2, 3, 5]const d = deleteAt(10)(a); // [1, 2, 3, 4, 5]
Returns a new array with the element at the specified position removed.
See
DeleteAt
Example