• Returns an array of numbers between min and max values.

    Values are inclusive.

    Returns all values between min and max by default. Pass in a step to change the granularity.

    Parameters

    • __namedParameters: {
          max: number;
          min: number;
          step?: number;
      }
      • max: number
      • min: number
      • Optional step?: number

    Returns readonly number[]

    Example

    range({ min: 0, max: 6 });
    // => [0, 1, 2, 3, 4, 5, 6]

    range({ min: 0, max: 6, step: 2 });
    // => [0, 2, 4, 6]

Generated using TypeDoc