Options
All
  • Public
  • Public/Protected
  • All
Menu

Functions

Functions

Const groupBy

  • groupBy<T, P>(list: T [], getKey: function): Record<string, T []> []

Group an array of objects by a property in the objects

Type parameters

  • T
  • P

Parameters

  • list: T []

    Array of objects

  • getKey: function

    Function which accepts an object and returns a property from it

      • (item: T): P
      • Parameters

        • item: T

        Returns P

Returns Record<string, T []> []

  • Inherited
  • Protected
  • Private
  • Static
  • Module
  • Object
  • Property
  • Function
  • Variable
  • Index
  • Type
  • Class
  • Interface
  • Enum
  • Constructor
  • Getter/Setter
Made with ❤️ by pirix-gh. Documentation generated by TypeDoc.