• Produces a function that returns the element at a specified index in a sequence or undefined if out of bounds.

    Returns

    Type Parameters

    • T

    Parameters

    • index: number

    Returns IterableTransform<T, T | undefined>

  • Produces a function that returns the element at a specified index in a sequence or the default value if out of bounds.

    Returns

    Type Parameters

    • T

    • TDefault

    Parameters

    • index: number
    • defaultValue: T

    Returns IterableTransform<T, T | TDefault>

Generated using TypeDoc