UNPKG

@n3okill/utils

Version:
9 lines (8 loc) 386 B
/** * Delete all instances of the given item from the array * @param arr Array where item will be removed from * @param elem The item to remove * @param number Number of times that item should be removed (default: `-1` - remove all instances of item) * @returns The array with item removed */ export declare function delItem<T>(arr: Array<T>, elem: T, number?: number): Array<T>;