Function setArraySize

  • Sets the size of an array with a placeholder if the size is bigger.

    Type Parameters

    • T

    Parameters

    • array: T[]

      The original array.

    • length: number

      The new length.

    • placeholder: T

      A placeholder to use to fill the empty space.

    Returns T[]

Generated using TypeDoc