hed-typescript API
Preparing search index...
utils/array
recursiveMap
Function recursiveMap
recursiveMap
<
T
,
U
>
(
array
:
RecursiveArray
<
T
>
,
fn
:
(
element
:
T
)
=>
U
,
)
:
RecursiveArray
<
U
>
Apply a function recursively to an array.
Type Parameters
T
U
Parameters
array
:
RecursiveArray
<
T
>
The array to map.
fn
:
(
element
:
T
)
=>
U
The function to apply.
Returns
RecursiveArray
<
U
>
The mapped array.
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
hed-typescript API
Loading...
Apply a function recursively to an array.