it
Preparing search index...
it-reduce
default
Function default
default
<
T
,
V
>
(
source
:
Iterable
<
T
>
,
func
:
(
acc
:
V
,
curr
:
T
,
index
:
number
)
=>
V
,
init
:
V
,
)
:
V
Reduces the values yielded by an (async) iterable
Type Parameters
T
V
Parameters
source
:
Iterable
<
T
>
func
:
(
acc
:
V
,
curr
:
T
,
index
:
number
)
=>
V
init
:
V
Returns
V
default
<
T
,
V
>
(
source
:
Iterable
<
T
,
any
,
any
>
|
AsyncIterable
<
T
,
any
,
any
>
,
func
:
(
acc
:
V
,
curr
:
T
,
index
:
number
)
=>
V
,
init
:
V
,
)
:
Promise
<
V
>
Reduces the values yielded by an (async) iterable
Type Parameters
T
V
Parameters
source
:
Iterable
<
T
,
any
,
any
>
|
AsyncIterable
<
T
,
any
,
any
>
func
:
(
acc
:
V
,
curr
:
T
,
index
:
number
)
=>
V
init
:
V
Returns
Promise
<
V
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
it
Loading...
Reduces the values yielded by an (async) iterable