@vsokolov/utils - v1.4.2
    Preparing search index...

    Function insertItemAtIndex

    • Insert an item at a given index

      Type Parameters

      • T

      Parameters

      • index: number | IndexCallback<T>

        An index or a callback provided to findIndex

      • value: T

        The value of the item to insert

      • Optionalarr: Maybe<T[]>

        The array to insert into

      Returns T[]

      New array with the item inserted