Returns two observables which partition the observations of the source by the given function. The first will trigger observations for those values for which the predicate returns true. The second will trigger observations for those values where the predicate returns false. The predicate is executed once for each subscribed observer. Both also propagate all error observations arising from the source and each completes when the source completes.
Function): Selector function to invoke for each produced element, resulting in another sequence to which the selector will be invoked recursively again. The callback is called with the following information:
- the value of the element
- the index of the element
- the Observable object being subscribed
Any): Object to use as
thiswhen executing the predicate.
Array): An array of observables. The first triggers when the predicate returns true, and the second triggers when the predicate returns false.