Function rangeAsync

  • Generates a sequence of integral numbers within a specified range.

    Parameters

    • start: number

      The value of the first integer in the sequence.

    • count: number

      The number of sequential integers to generate.

    Returns IAsyncEnumerable<number>

    An IAsyncEnumerable that contains a range of sequential integral numbers.

    Throws

    Start is Less than 0 OR start + count -1 is larger than MAX_SAFE_INTEGER.

Generated using TypeDoc