UNPKG
uinix-fp-k
Version:
latest (1.0.1)
1.0.1
1.0.0
uinix fp constant/always utility
github.com/uinix-js/uinix-fp/tree/main
uinix-js/uinix-fp
uinix-fp-k
/
index.js
11 lines
(9 loc)
•
154 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
export
{k};
/** * The K combinator (constant function). * *
@template
X, Y *
@param
{
X
}
x
*
@returns
{
(_y: Y) => X
} */
const
k
= (
x
) =>
(
_y
) =>
x;