Bitbybit Docs
    Preparing search index...

    Class RemoveItemAtIndexDto<T> (Inputs.Lists)

    用于 lists.removeItemAtIndexlists.removeItemAtIndexFromEnd 的列表和位置。

    Type Parameters

    • T
    Index

    Constructors

    Properties

    Constructors

    • Type Parameters

      • T

      Parameters

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

      Returns RemoveItemAtIndexDto<T>

    Properties

    list: T[]

    要从中取出该项的列表。

    undefined
    
    index: number

    要移除的位置,从开头的 0 开始计数,对于 from-end 方法则从末尾的 0 开始计数;超出列表则不移除任何东西。

    0
    

    0

    Infinity

    1

    clone?: boolean

    为 true 时,列表先被深拷贝,因此输入永远不会被更改;为 false 时该项就地移除。

    true