Loading search index…
No recent searches
No results for "Query here"
Returns its argument unchanged. The fundamental combinator for no-op transformations and base cases.
export const Identity = (x: Fn) => x; export const I = Identity;
Identity(42); // 42 Identity("hello"); // "hello" [1, 2, 3].map(Identity); // [1, 2, 3]