UNPKG

@arrows/array

Version:
14 lines (13 loc) 402 B
declare type _Remove_ = <T>(index: number, arr: T[]) => T[]; declare type _Remove2_ = <T>(index: number) => (arr: T[]) => T[]; declare type Remove_ = _Remove_ & _Remove2_; /** * Creates a new array without an item at the provided index. * * @param index Specific index * @param arr Initial array * @returns New array */ declare const remove_: Remove_; export { remove_ }; export default remove_;