Bitbybit Docs
    Preparing search index...

    Class RemoveNthItemDto<T> (Inputs.Lists)

    A list, a step and an offset for lists.removeNthItem.

    Type Parameters

    • T
    Index

    Constructors

    Properties

    Constructors

    • Type Parameters

      • T

      Parameters

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

      Returns RemoveNthItemDto<T>

    Properties

    list: T[]

    The list to thin out.

    undefined
    
    nth: number

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

    2
    

    1

    Infinity

    1

    offset: number

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

    0
    

    0

    Infinity

    1

    clone?: boolean

    When true, the list is deep-copied first so the input is never changed; when false the items are removed in place.

    true