@resee-movies/utilities - v0.8.0
    Preparing search index...

    Function groupByDate

    • Given an array of objects that each contain a Date or parsable date-like property, create a new, two-dimensional array that groups those objects by date, up to the given precision.

      Note: this method requires that the provided source first be sorted in the direction of the desired result (either ascending or descending).

      Type Parameters

      • T

      Parameters

      Returns T[][]