goog.iter.groupBy
iterator.
goog.iter.Iterator | |
goog.iter.GroupByIterator_ | goog.iter.Iterator |
iterable
: !goog.iter.Iterator.<VALUE> | !goog.iter.Iterable
The
iterable to group.
|
opt_keyFunc
: function(...[VALUE]): KEY=
Optional function for
determining the key value for each group in the
iterable . Default
is the identity function. |
Performs the grouping of objects using the given key.
Arguments:
|
code » | ||
![]()
A function for determining the key value for each element in the iterable.
If no function is provided, the identity function is used and returns the
element unchanged.
|
code » | ||
![]()
No description.
|
code » |
Returns the
Iterator object itself. This is used to implement
the iterator protocol in JavaScript 1.7
Arguments:
|
code » | ||
![]()
Returns the next value of the iteration. This will throw the object
when the iteration passes the end.
Returns: VALUE
Any object or value.
|
code » |
![]()
No description.
|
Code » |