• The range function return a Iterable of numbers, starting from from,increments by 1 and stops at to.

    Parameters

    • from: number
    • to: number

    Returns Iterable<number>

    const collection = new ListCollection(range(1, 10))
    collection.toArray();
    // [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]