Bitbybit Docs
    Preparing search index...

    Class GetNthItemDto<T> (Inputs.Lists)

    A list, a step and an offset for 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[]

    The list to pick from.

    undefined
    
    nth: number

    The step: every nth item, counted from the offset, is kept.

    2
    

    1

    Infinity

    1

    offset: number

    Position of the first item to keep, counting from 0.

    0
    

    0

    Infinity

    1

    clone?: boolean

    When true, the items are deep-copied so the caller cannot change the list through them.

    true