• Yields elements of an array from start index to end index. Similar to array.slice, however negative numbers as parameters are not supported yet.

    Type Parameters

    • T

    Parameters

    • array: T[]

      Array to read from

    • start: number = 0

      Index to start at (inclusive)

    • end: number = array.length

      Index to end at (exclusive)

    Returns Generator<T>