Bitbybit Docs
    Preparing search index...

    Class GetNthItemDto<T> (Inputs.Lists)

    用于 lists.getNthItem 的列表、步长和偏移。

    Type Parameters

    • T
    Index

    Constructors

    Properties

    Constructors

    • Type Parameters

      • T

      Parameters

      • Optionallist: T[]
      • Optionalnth: number
      • Optionaloffset: number
      • Optionalclone: boolean

      Returns GetNthItemDto<T>

    Properties

    list: T[]

    要从中挑选的列表。

    undefined
    
    nth: number

    步长:从偏移处开始计数,每第 n 项被保留。

    2
    

    1

    Infinity

    1

    offset: number

    要保留的第一项的位置,从 0 开始计数。

    0
    

    0

    Infinity

    1

    clone?: boolean

    为 true 时,这些项被深拷贝,使调用者无法通过它们更改列表。

    true