Preparing search index...
The search index is not available
iteragain - v4.1.5
iteragain
internal/GroupByIterator
GroupByIterator
Class GroupByIterator<T, K>
Groups values in the input iterator by some key identifier function or property.
Type Parameters
T
K
extends
KeyIdentifier
<
T
>
Implements
IterableIterator
<
[
KeyIdentifiersValue
<
T
,
K
>
,
T
[]
]
>
Index
Constructors
constructor
Properties
curr
Group
curr
Key
done
iterator
key
Methods
[iterator]
get
Key
next
Constructors
constructor
new
Group
By
Iterator
<
T
,
K
>
(
iterator
,
key
)
:
GroupByIterator
<
T
,
K
>
Type Parameters
T
K
extends
|
string
|
number
|
symbol
|
Iteratee
<
T
,
any
>
Parameters
iterator
:
Iterator
<
T
,
any
,
any
>
key
:
K
Returns
GroupByIterator
<
T
,
K
>
Properties
Protected
curr
Group
curr
Group
:
T
[]
= []
Protected
curr
Key
curr
Key
:
undefined
|
KeyIdentifiersValue
<
T
,
K
>
Protected
done
done
:
boolean
= false
Protected
iterator
iterator
:
Iterator
<
T
,
any
,
any
>
Protected
key
key
:
K
Methods
[iterator]
[iterator]
(
)
:
IterableIterator
<
[
KeyIdentifiersValue
<
T
,
K
>
,
T
[]
]
,
any
,
any
>
Returns
IterableIterator
<
[
KeyIdentifiersValue
<
T
,
K
>
,
T
[]
]
,
any
,
any
>
get
Key
get
Key
(
value
)
:
KeyIdentifiersValue
<
T
,
K
>
Parameters
value
:
T
Returns
KeyIdentifiersValue
<
T
,
K
>
next
next
(
)
:
IteratorResult
<
[
KeyIdentifiersValue
<
T
,
K
>
,
T
[]
]
,
any
>
Returns
IteratorResult
<
[
KeyIdentifiersValue
<
T
,
K
>
,
T
[]
]
,
any
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
curr
Group
curr
Key
done
iterator
key
Methods
[iterator]
get
Key
next
iteragain - v4.1.5
Loading...
Groups values in the input iterator by some key identifier function or property.