• Creates an array of numbers (positive and/or negative) progressing from start up to, but not including, end. If end is not specified it’s set to start with start then set to 0. If end is less than start a zero-length range is created unless a negative step is specified.

    Parameters

    • start: number

      The start of the range.

    • Optionalend: number

      The end of the range.

    • Optionalstep: number

      The value to increment or decrement by.

    Returns number[]

    Returns a new range array.

  • Parameters

    • end: number
    • index: string | number
    • guard: object

    Returns number[]

    _.range