Theia API Documentation v1.65.0
    Preparing search index...
    • groups array elements through a comparator function

      Type Parameters

      • T

      Parameters

      • data: readonly T[]

        array of elements to group

      • compare: (a: T, b: T) => number

        comparator function: return of 0 means should group, anything above means not group

      Returns T[][]

      array of arrays with grouped elements