Skip to content
This repository was archived by the owner on Apr 20, 2018. It is now read-only.

Commit aa3e6fa

Browse files
Merge pull request #629 from GDoronin/master
Issue #627 example fixed.
2 parents 4458fbc + 2e668a9 commit aa3e6fa

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

doc/api/core/operators/flatmaplatest.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ The `flatMapLatest` operator is similar to the `flatMap` and `concatMap` methods
2020
#### Example
2121
```js
2222
var source = Rx.Observable
23-
.range(1, 2)
24-
.flatMapLatest(function (x) {
25-
return Rx.Observable.range(x, 2);
23+
.range(1, 3)
24+
.flatMapLatest(function(x) {
25+
return Rx.Observable.from([x + 'a', x + 'b']);
2626
});
2727

2828
var subscription = source.subscribe(
@@ -36,10 +36,11 @@ var subscription = source.subscribe(
3636
console.log('Completed');
3737
});
3838

39-
// => Next: 1
40-
// => Next: 2
41-
// => Next: 3
42-
// => Completed
39+
// Next: 1a
40+
// Next: 2a
41+
// Next: 3a
42+
// Next: 3b
43+
// Completed
4344
```
4445

4546
### Location

0 commit comments

Comments
 (0)