Preparing search index...
The search index is not available
iteragain - v4.2.0
iteragain
reduce
reduce
Function reduce
reduce
<
T
>
(
arg
:
IteratorOrIterable
<
T
>
,
reducer
:
(
accumulator
:
T
,
value
:
T
)
=>
T
,
)
:
T
Reduces the input iterator to a single value.
Type Parameters
T
Parameters
arg
:
IteratorOrIterable
<
T
>
reducer
:
(
accumulator
:
T
,
value
:
T
)
=>
T
Returns
T
reduce
<
T
>
(
reducer
:
(
accumulator
:
T
,
value
:
T
)
=>
T
,
)
:
(
arg
:
IteratorOrIterable
<
T
>
)
=>
T
Reduces the input iterator to a single value.
Type Parameters
T
Parameters
reducer
:
(
accumulator
:
T
,
value
:
T
)
=>
T
Returns
(
arg
:
IteratorOrIterable
<
T
>
)
=>
T
reduce
<
T
,
R
>
(
arg
:
IteratorOrIterable
<
T
>
,
reducer
:
(
accumulator
:
R
,
value
:
T
)
=>
R
,
initialValue
:
R
,
)
:
R
Reduces the input iterator to a single value.
Type Parameters
T
R
Parameters
arg
:
IteratorOrIterable
<
T
>
reducer
:
(
accumulator
:
R
,
value
:
T
)
=>
R
initialValue
:
R
Returns
R
reduce
<
T
,
R
>
(
reducer
:
(
accumulator
:
R
,
value
:
T
)
=>
R
,
initialValue
:
R
,
)
:
(
arg
:
IteratorOrIterable
<
T
>
)
=>
R
Reduces the input iterator to a single value.
Type Parameters
T
R
Parameters
reducer
:
(
accumulator
:
R
,
value
:
T
)
=>
R
initialValue
:
R
Returns
(
arg
:
IteratorOrIterable
<
T
>
)
=>
R
reduce
<
T
,
R
>
(
arg
:
IteratorOrIterable
<
T
>
,
reducer
:
(
accumulator
:
T
|
R
,
value
:
T
)
=>
R
,
)
:
R
Reduces the input iterator to a single value.
Type Parameters
T
R
Parameters
arg
:
IteratorOrIterable
<
T
>
reducer
:
(
accumulator
:
T
|
R
,
value
:
T
)
=>
R
Returns
R
reduce
<
T
,
R
>
(
reducer
:
(
accumulator
:
T
|
R
,
value
:
T
)
=>
R
,
)
:
(
arg
:
IteratorOrIterable
<
T
>
)
=>
R
Reduces the input iterator to a single value.
Type Parameters
T
R
Parameters
reducer
:
(
accumulator
:
T
|
R
,
value
:
T
)
=>
R
Returns
(
arg
:
IteratorOrIterable
<
T
>
)
=>
R
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
iteragain - v4.2.0
Loading...
Reduces the input iterator to a single value.