-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Description
I think we should deprecate the partition operator and remove it for v7.
Reasons:
- Not really an operator:
partition
isn't really an "operator" in that it returns[Observable<T>, Observable<T>]
rather thanObservable<T>
. This means it doesn't compose via pipe like the others. - Easy to replace with filter:
partition
is easily replaced with the much more widely knownfilter
operator. As partition is effectively the same thing as:const partition = (predicate) => [source.pipe(filter(predicate)), source.pipe(filter((x, i) => !predicate(x, i)))]
- Rarely used: It's little used, by any code survey I've taken (within thousands of lines of code that I know use RxJS)
martinsik, okunokentaro, elie29, cpatti97100 and nickbreaton
Metadata
Metadata
Assignees
Labels
No labels