generic
Script
v11
Fork
1
2
3
4
5
6
export
function
generic
<
A
>
(
arr
:
A
[
]
,
criteria
:
(
a
:
A
)
=>
string
)
:
{
[
key
:
string
]
:
A
[
]
}
{
return
{
}
;
}