import { identity } from "https://deno.land/x/fun@v2.0.0-alpha.6/fn.ts";
The canonical identity function. It returns whatever value was passed to it.
Examples
Example 1
Example 1
import { identity } from "./fn.ts";
const result1 = identity(1); // 1
const result2 = identity("Hello"); // "Hello"
Parameters
a: A