mingo
    Preparing search index...

    Function groupBy

    • Groups the collection into sets by the returned key

      Type Parameters

      • T = unknown
      • K = unknown

      Parameters

      • collection: T[]
      • keyFunc: Callback<K>

        {Function} to compute the group key of an item in the collection

      • hashFunc: HashFunction = DEFAULT_HASH_FUNCTION

      Returns Map<K, T[]>