Bitbybit Docs
    Preparing search index...

    Class AddItemsAtIndexesDto<T> (Inputs.Lists)

    A list, several items and one position per item for lists.addItemsAtIndexes.

    Type Parameters

    • T
    Index

    Constructors

    Properties

    Constructors

    • Type Parameters

      • T

      Parameters

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

      Returns AddItemsAtIndexesDto<T>

    Properties

    list: T[]

    The list to insert into.

    undefined
    
    items: T[]

    The items to insert, one per index, in the same order.

    undefined
    
    indexes: number[]

    One position per item, in ascending order, counted on the list as it was before any insertion; a wrong count or order throws.

    [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