• Creates a numeric range

    Parameters

    • from: number
    • to: number

    Returns number[]

    Example

    range(-2, 2) // => [-2, -1, 0, 1, 2]
    range(2, -2) // => [2, 1, 0, -1, -2]