LinqGroup

LinqGroup

Represents a group of elements sharing a common key, typically used in LINQ operations like `groupBy` or `groupJoin`. This class is iterable and inherits all LINQ capabilities.

Constructor

new LinqGroup(key, iterable, thisArg)

Description:
  • Initializes a new instance of LinqGroup, wrapping a group with a specific key.
Source:
Parameters:
Name Type Description
key any The key that is common to the group's elements.
iterable Iterable.<any> An iterable of grouped items.
thisArg any Optional `this` context for callback usage.

Members

key

Description:
  • Gets the key shared by all elements in this group.
Source:
Gets the key shared by all elements in this group.

Methods

toString() → {string}

Description:
  • Returns a string representation of the group, including its key.
Source:
Returns:
A string in the format: `LinqGroup (key=...)`.
Type
string