range
Creates an Observable that emits a sequence of numbers within a specified range.
Parameters
start |
Optional. Default is The value of the first integer in the sequence. |
count |
Optional. Default is The number of sequential integers to generate. |
scheduler |
Optional. Default is A |
Returns
Observable<number>
: An Observable of numbers that emits a finite range of
sequential integers.
Description
Emits a sequence of numbers in a range.
range
operator emits a range of sequential integers, in order, where you
select the start
of the range and its length
. By default, uses no
SchedulerLike
and just delivers the notifications synchronously, but may use
an optional SchedulerLike
to regulate those deliveries.
Example
Emits the numbers 1 to 10