Hex Core JS
    Preparing search index...

    Function insertArrayElement

    • Returns a new array with the new given element inserted at the specified index.

      Type Parameters

      • T

      Parameters

      • array: T[]

        The array to insert the element in.

      • index: number

        The target index of the new element.

      • element: T

        The element to insert into the array.

      Returns T[]