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

Commit 9c001e0

Browse files
committed
Update count.md
1 parent 8a49613 commit 9c001e0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

doc/api/core/operators/count.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
### `Rx.Observable.prototype.count([predicate])`
1+
### `Rx.Observable.prototype.count([predicate], [thisArg])`
22
[Ⓢ](https://github.com/Reactive-Extensions/RxJS/blob/master/src/core/linq/observable/count.js "View in source")
33

44
Returns an observable sequence containing a value that represents how many elements in the specified observable sequence satisfy a condition if provided, else the count of items.
55

66
#### Arguments
7-
1. `[predicate]` *(`Any`)*: A function to test each element for a condition. The callback is called with the following information:
7+
1. `[predicate]` *(`Function`)*: A function to test each element for a condition. The callback is called with the following information:
88
1. the value of the element
99
2. the index of the element
1010
3. the Observable object being subscribed
11+
2. `[thisArg]` *(`Any`)*: Object to use as `this` when executing `predicate`.
1112

1213
#### Returns
1314
*(`Observable`)*: An observable sequence containing a single element with a number that represents how many elements in the input sequence satisfy the condition in the predicate function if provided, else the count of items in the sequence.

0 commit comments

Comments
 (0)