-
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:
partitionisn'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:
partitionis easily replaced with the much more widely knownfilteroperator. 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)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels