Bitbybit Docs
    Preparing search index...

    Class ListItemDto<T> (Inputs.Lists)

    A list and a position for lists.getItem.

    Type Parameters

    • T
    Index

    Constructors

    Properties

    Constructors

    • Type Parameters

      • T

      Parameters

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

      Returns ListItemDto<T>

    Properties

    list: T[]

    The list to read from.

    undefined
    
    index: number

    Position of the item, counting from 0; outside the list it throws.

    0
    

    0

    Infinity

    1

    clone?: boolean

    When true, the item is deep-copied so the caller cannot change the list through it; an item that cannot be copied, such as one with circular references, throws.

    true