Function divideCollection
- divideCollection<T>(collection, filterPredicate): {
negative: T[];
positive: T[];
} Parameters
- collection: Set<T> | T[]
- filterPredicate: ((item) => boolean)
- (item): boolean
Returns boolean
Returns {
negative: T[];
positive: T[];
}
negative: T[]
positive: T[]
Divides a collection into two arrays based on a filter predicate.