Bitbybit Docs
    Preparing search index...

    Class AddItemFirstLastDto<T> (Inputs.Lists)

    A list, an item and an end for lists.addItemFirstLast.

    Type Parameters

    • T
    Index

    Constructors

    Properties

    Constructors

    Properties

    list: T[]

    The list that receives the item.

    undefined
    
    item: T

    The item that goes at the chosen end.

    undefined
    
    position: firstLastEnum

    Whether the item goes at the start (first) or the end (last).

    last
    
    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