Interface Group

Index

Methods

Methods

public all(): Grouping[]

Returns

Grouping[]

public dispose(): Group

Returns

Group

public order(value?: Selector): Group

Parameters

Returns

Group

public orderNatural(): Group

Returns

Group

public reduce(add: (p: TGroup, v: T) => TGroup, remove: (p: TGroup, v: T) => TGroup, initial: () => TGroup): Group

Parameters

  • add: (p: TGroup, v: T) => TGroup
  • remove: (p: TGroup, v: T) => TGroup
  • initial: () => TGroup

Returns

Group

public reduceCount(): Group

Returns

Group

public reduceSum(value: (data: T) => TGroup): Group

Parameters

  • value: (data: T) => TGroup

Returns

Group

public size(): number

Returns

number

public top(k: number): Grouping[]

Parameters

  • k: number

Returns

Grouping[]