RSX Code Reference
    Preparing search index...

    Function range

    • Returns a Generator that can be used in a for...of iteraton. If only firstOrCount is specified, the generator starts at 0. If last is specified, the generator starts at firstOrCount and iterates until last.

      The following forms are used

      for(let index=0; index < firstOrCount; index++)
      {
      ...
      }

      If last is specified:

      for(let index=firstOrCount; index < last; index++)
      {
      ...
      }

      Parameters

      • firstOrCount: number
      • Optionallast: number

      Returns Generator<number>