Rx.Observable.prototype.toArray()

Creates a list from an observable sequence.

Returns

(Observable): An observable sequence containing a single element with a list containing all the elements of the source sequence.

Example