Function itr8RangeAsync

  • Utility function that produces an (async) iterator producing integers starting and ending where you want, which is useful for trying out stuff without manually having to create arrays.

    • 'from' can be higher than 'to', in which case the iterator will count down
    • 'step' is always a positive number (but we are forgiving if it's not)

    Parameters

    • from: number
    • to: number
    • Optional step: number

    Returns AsyncIterableIterator<number>

Generated using TypeDoc