Converts an array to an observable sequence, using an optional scheduler to enumerate the array.
initialState (Any): Initial state.
initialState
Any
condition (Function): Condition to terminate generation (upon returning false).
condition
Function
iterate (Function): Iteration step function.
iterate
resultSelector (Function): Selector function for results produced in the sequence.
resultSelector
[scheduler=Rx.Scheduler.currentThread] (Scheduler): Scheduler on which to run the generator loop. If not provided, defaults to Scheduler.currentThread.
[scheduler=Rx.Scheduler.currentThread]
Scheduler
(Observable): The generated sequence.
Observable
Last updated 5 years ago