Vinyl
    Preparing search index...

    Function getElementOrDefault

    • Gets the element in the ArrayLike at the given index, or returns the provided default value.

      Type Parameters

      • T
      • V

      Parameters

      • array: ArrayLike<T>
      • index: number
      • defaultValue: V

      Returns T | V