Preparing search index...
The search index is not available
Tidyscripts Docs
Tidyscripts Docs
common
fp
map_indexed
Function map_indexed
map_
indexed
(
f
,
x
)
:
Curry
<
(
(
...
p
:
[
]
|
[
b
:
readonly
unknown
[]
]
)
=>
unknown
[]
)
>
Maps a function across a list, where the function receives both index and value as arguments (i,v)
Parameters
f
:
(
(
idx
:
number
,
val
:
any
)
=>
any
)
(
idx
,
val
)
:
any
Parameters
idx
:
number
val
:
any
Returns
any
x
:
any
[]
Returns
Curry
<
(
(
...
p
:
[
]
|
[
b
:
readonly
unknown
[]
]
)
=>
unknown
[]
)
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Tidyscripts Docs
Loading...
Maps a function across a list, where the function receives both index and value as arguments (i,v)