average
Computes the average of an observable sequence of values that are in the sequence or obtained by invoking a transform function on each element of the input sequence if present.
Arguments
[selector](Function): A transform function to apply to each element.[thisArg](Any): Object to use asthiswhen executingselector.
Returns
(Observable): An observable sequence containing a single element with the average of the sequence of values.
Example
Without a selector
With a selector
Last updated
Was this helpful?