UNPKG
uinix-fp-map
Version:
latest (1.0.0)
1.0.0
uinix fp array map utility
uinix-js/uinix-fp
uinix-fp-map
/
index.d.ts
9 lines
(8 loc)
•
198 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
/** * Maps an array using the provided mapper. * *
@template
X, Y *
@param
{
(x: X) => Y
} f mapper *
@returns
{
(xs: X[]) => Y[]
} */
export
function
map<X, Y>(
f
:
(
x: X
) =>
Y):
(
xs: X[]
) =>
Y[];