Bitbybit Docs
    Preparing search index...

    Class AddItemDto<T> (Inputs.Lists)

    A list and an item for lists.addItem and lists.prependItem.

    Type Parameters

    • T
    Index

    Constructors

    Properties

    Constructors

    • Type Parameters

      • T

      Parameters

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

      Returns AddItemDto<T>

    Properties

    list: T[]

    The list that receives the item.

    undefined
    
    item: T

    The item to add at the end or the start.

    undefined
    
    clone?: boolean

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

    true