Pacote
    Preparing search index...

    Function range

    • Returns an array of numbers between specified start and end (non inclusive) values.

      The function is only able to generate ascending ranges.

      Parameters

      • start: number

        The start of the range.

      • end: number

        The end of the range (not included).

      Returns number[]

      import { range } from '@pacote/array'

      range(1, 4) // => [1, 2, 3]