Loading search index…
No recent searches
No results for "Query here"
Kestrel combinator - Returns the first argument, ignoring the second. Useful for constant functions and ignoring unwanted arguments.
export const Kestrel = (x: Fn) => (_: Fn) => x; export const K = Kestrel; export const First = K;
const alwaysFive = Kestrel(5); alwaysFive(100); // 5 alwaysFive("anything"); // 5