Preparing search index...
The search index is not available
iteragain - v4.2.0
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
GroupByIterator
<
T
,
K
extends
string
|
number
|
symbol
|
Iteratee
<
T
,
any
>
>
(
iterator
:
Iterator
<
T
>
,
key
:
K
,
)
:
GroupByIterator
<
T
,
K
>
Type Parameters
T
K
extends
string
|
number
|
symbol
|
Iteratee
<
T
,
any
>
Parameters
iterator
:
Iterator
<
T
>
key
:
K
Returns
GroupByIterator
<
T
,
K
>
Properties
Protected
curr
Group
currGroup
:
T
[]
= []
Protected
curr
Key
currKey
:
undefined
|
KeyIdentifiersValue
<
T
,
K
>
Protected
done
done
:
boolean
= false
Protected
iterator
iterator
:
Iterator
<
T
>
Protected
key
key
:
K
Methods
[iterator]
"[iterator]"
()
:
IterableIterator
<
[
KeyIdentifiersValue
<
T
,
K
>
,
T
[]
]
>
Returns
IterableIterator
<
[
KeyIdentifiersValue
<
T
,
K
>
,
T
[]
]
>
get
Key
getKey
(
value
:
T
)
:
KeyIdentifiersValue
<
T
,
K
>
Parameters
value
:
T
Returns
KeyIdentifiersValue
<
T
,
K
>
next
next
()
:
IteratorResult
<
[
KeyIdentifiersValue
<
T
,
K
>
,
T
[]
]
>
Returns
IteratorResult
<
[
KeyIdentifiersValue
<
T
,
K
>
,
T
[]
]
>
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.2.0
Loading...
Groups values in the input iterator by some key identifier function or property.