Skip to content

Commit

Permalink
Just have flatMap under iterator helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
benlesh committed Nov 29, 2023
1 parent 3fa9c0d commit bb15499
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()`
Expand Down

0 comments on commit bb15499

Please sign in to comment.