@mudssky/jsutils
    Preparing search index...

    Function chunk

    • Splits a single list into many lists of the desired size. If given a list of 10 items and a size of 2, it will return 5 lists with 2 items each

      Type Parameters

      • T

      Parameters

      • list: readonly T[]
      • size: number = 2

      Returns T[][]