geoview-core
    Preparing search index...

    Function range

    • Generates an array of numbers from start (inclusive) to end (exclusive), incrementing by step.

      Parameters

      • start: number

        The first number in the range.

      • end: number

        The end of the range (exclusive).

      • Optionalstep: number = 1

        The increment between numbers.

      Returns number[]

      An array of numbers from start to end with the given step.

      range(0, 5); // [0, 1, 2, 3, 4]
      range(50, 1000, 50); // [50, 100, 150, ..., 950]