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

Commit e4c3a5e

Browse files
committed
Fix example
1 parent 721f207 commit e4c3a5e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

doc/api/core/operators/elementatordefault.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Returns the element at a specified index in a sequence.
1414
```js
1515
/* Finds an index */
1616
var source = Rx.Observable.from([1,2,3,4])
17-
.elementAt(1);
17+
.elementAtOrDefault(1);
1818

1919
var subscription = source.subscribe(
2020
function (x) {
@@ -32,7 +32,7 @@ var subscription = source.subscribe(
3232

3333
/* Not found */
3434
var source = Rx.Observable.from([1,2,3,4])
35-
.elementAt(4, 0);
35+
.elementAtOrDefault(4, 0);
3636

3737
var subscription = source.subscribe(
3838
function (x) {

0 commit comments

Comments
 (0)