Bitbybit Docs
    Preparing search index...

    Class AddItemAtIndexesDto<T> (Inputs.Lists)

    A list, an item and several positions for lists.addItemAtIndexes.

    Type Parameters

    • T
    Index

    Constructors

    Properties

    Constructors

    • Type Parameters

      • T

      Parameters

      • Optionallist: T[]
      • Optionalitem: T
      • Optionalindexes: number[]
      • Optionalclone: boolean

      Returns AddItemAtIndexesDto<T>

    Properties

    list: T[]

    The list to insert into.

    undefined
    
    item: T

    The item to insert at every position.

    undefined
    
    indexes: number[]

    The positions, counted on the list as it was before any insertion; positions outside the list are ignored.

    [0]
    
    clone?: boolean

    When true, the list is deep-copied first so the input is never changed; when false the items are inserted in place.

    true