Parameters
- array: T[]
- paritioner: (item: T, index: number) => any
Optionalpredicate: (item: T, index: number) => any
Returns [T[], T[]]
A tuple with two arrays the first array holding the values for which the predicate returned true and the second array
holding the values for which the predicate returned false.
Segregate the elements of the source array into two distinct arrays the first array holding the values for which the predicate returned true and the second array holding the values for which the predicate returned false.