Function getElementOrError

  • Gets the element at index on the array or throws an error if it is not defined

    Type Parameters

    • T

    Parameters

    • array: T[]
    • index: number

    Returns T

Generated using TypeDoc