Function guardIndex

Throws if index is an invalid array index for array, and if array itself is not a valid array.

  • Type Parameters

    • V

    Parameters

    • array: ArrayLike<V>
    • index: number
    • name: string = ...

    Returns void