Skip to content

docs(range): unclear parameters description #5721

Description

@ldemianiuk

Documentation Related To Component:

range

Please check those that apply

  • typo
  • documentation doesn't exist
  • documentation needs clarification
  • error(s) in example
  • needs example

Description Of The Issue

The signature

range(start: number = 0, count?: number, scheduler?: SchedulerLike): Observable<number>

suggests that range(n) is equivalent to range(n, undefined), but it's actually range(0, n).

Maybe add an overload range(count: number) .

Less importantly, range(n, Infinity) emits an infinite sequence, contrary to the documentation.

Observable: An Observable of numbers that emits a finite range of sequential integers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions