From bb15499361e1043d9d2ab1ec7ab7c54474fb119c Mon Sep 17 00:00:00 2001 From: Ben Lesh Date: Tue, 28 Nov 2023 18:09:21 -0600 Subject: [PATCH] Just have flatMap under iterator helpers --- README.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/README.md b/README.md index 3f0e09c..c0ab932 100644 --- a/README.md +++ b/README.md @@ -507,10 +507,6 @@ We propose the following operators in addition to the `Observable` interface: - `finally()` - Like `Promise.finally()`, it takes a callback which gets fired after the observable completes in any way (`complete()`/`error()`) -- `flatMap()` - - - Similar to `Iterator.prototype.flatMap`, however, because the types are different, - there are some semantics to note. Versions of the above are often present in userland implementations of observables as they are useful for observable-specific reasons, but in addition @@ -526,7 +522,7 @@ methods](https://tc39.es/proposal-iterator-helpers/#sec-iteratorprototype) to - `filter()` - `take()` - `drop()` -- `flatMap()` +- `flatMap()` (Because the types are different, there are [some semantics to note](#flatmap-semantics).) - `reduce()` - `toArray()` - `forEach()`