@jiminp/tooltool
    Preparing search index...

    Function arrayGetOrExtendWith

    • Gets the element at the given index. If the index is out of bounds, the array will be extended with the result of f(index).

      Type Parameters

      • T extends object

      Parameters

      • arr: T[]
      • index: number
      • f: (index: number) => T

      Returns T