RxJS range() Creation OperatorRxJS range() operator is a creation operator used to create an observable that emits a sequence of numbers within a specified range provided. It emits a sequence of numbers in a range. In other words, we can say that the RxJS range() operator returns an observable that emits a particular range of sequential integers. It emits a range of sequential integers, in order, where you select the start of the range and its length. Syntax:Following is the syntax of the RxJS range() creation operator: Or Or Parameter Explanation
Return valueThe RxJS range() operator returns an observable number that emits a finite range of sequential integers or a sequence of numbers based on the range provided. Let us see an example of the RxJS range() operator to understand it clearly. ExampleOutput: After executing the above example, you will see the following result: In the above example, you can see that it has emitted the sequential values up to 10 numbers which we have specified as a range in the example.
Next TopicRxJS Operators
|