@polgubau/utils
Version:
A collection of utility functions for TypeScript
12 lines (10 loc) • 399 B
text/typescript
/**
* Removes the element at the specified index from the array.
* This modifies the original array.
* @param arr - The array from which to remove the element.
* @param index - The index of the element to remove.
* @returns The modified array with the element removed.
* @example remove([1, 2, 3], 1) // [1, 3]
*/
declare function remove<T>(arr: T[], index: number): T[];
export { remove };