Returns a new array with the element at the specified index removed.
const letters = ['a', 'b', 'c', 'd'] as const;const withoutSecond = Arr.toRemoved(letters, 1);const withoutFirstCurried = Arr.toRemoved(0)(letters);assert.deepStrictEqual(withoutSecond, ['a', 'c', 'd']);assert.deepStrictEqual(withoutFirstCurried, ['b', 'c', 'd']); Copy
const letters = ['a', 'b', 'c', 'd'] as const;const withoutSecond = Arr.toRemoved(letters, 1);const withoutFirstCurried = Arr.toRemoved(0)(letters);assert.deepStrictEqual(withoutSecond, ['a', 'c', 'd']);assert.deepStrictEqual(withoutFirstCurried, ['b', 'c', 'd']);
Returns a new array with the element at the specified index removed.