Parameters
- array: T[]
- predicate: ((item: T, index: number, array: T[]) => boolean)
- (item, index, array): boolean
Parameters
- item: T
- index: number
- array: T[]
Returns boolean
Returns T[]
The arrayRemove function returns an array containing the elements that satisfy the given
predicate function.
The
arrayRemovefunction removes elements from an array based on a specified predicate function and returns the removed elements.