@corefunc/corefunc
    Preparing search index...

    Function arrayBasicInsert

    • Type Parameters

      • T

      Parameters

      • array: readonly T[]

        The source array.

      • index: number

        The position at which to insert the item.

      • item: T

        The item to insert.

      Returns T[]

      A new array with the item inserted.

      arrayBasicInsert

      Insert an item into a new array at the specified index without mutating the original array.