Bitbybit Docs
    Preparing search index...

    Class GroupListDto<T> (Inputs.Lists)

    A list and a group size for lists.groupNth.

    Type Parameters

    • T
    Index

    Constructors

    Properties

    Constructors

    • Type Parameters

      • T

      Parameters

      • Optionallist: T[]
      • OptionalnrElements: number
      • OptionalkeepRemainder: boolean

      Returns GroupListDto<T>

    Properties

    list: T[]

    The items to split into groups, in order.

    undefined
    
    nrElements: number

    How many items go in each group.

    2
    

    1

    Infinity

    1

    keepRemainder: boolean

    When true, the items left over at the end form a shorter last group; when false they are dropped.

    false