@jiminp/tooltool
    Preparing search index...

    Function arrayGetOrExtend

    • Gets the element at the given index. If the index is out of bounds, the array will be extended with shallow copies of default_value.

      Type Parameters

      • T extends object

      Parameters

      • arr: T[]
      • index: number
      • default_value: T

      Returns T