Bitbybit Docs
    Preparing search index...

    Class AddItemAtIndexDto<T> (Inputs.Lists)

    A list, an item and a position for lists.addItemAtIndex.

    Type Parameters

    • T
    Index

    Constructors

    Properties

    Constructors

    • Type Parameters

      • T

      Parameters

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

      Returns AddItemAtIndexDto<T>

    Properties

    list: T[]

    The list to insert into.

    undefined
    
    item: T

    The item to insert.

    undefined
    
    index: number

    The position the item takes, counting from 0; the item there and everything after it shift up by one.

    0
    

    0

    Infinity

    1

    clone?: boolean

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

    true