You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 20, 2018. It is now read-only.
[Ⓢ](https://github.com/Reactive-Extensions/RxJS/blob/master/src/core/linq/observable/count.js"View in source")
3
3
4
4
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.
5
5
6
6
#### 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:
8
8
1. the value of the element
9
9
2. the index of the element
10
10
3. the Observable object being subscribed
11
+
2.`[thisArg]`*(`Any`)*: Object to use as `this` when executing `predicate`.
11
12
12
13
#### Returns
13
14
*(`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