Skip to main content
Module

x/fun/fn.ts>identity

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Latest
function identity
import { identity } from "https://deno.land/x/fun@v2.0.0/fn.ts";

The canonical identity function. It returns whatever value was passed to it.

Examples

Example 1

import { identity } from "./fn.ts";

const result1 = identity(1); // 1
const result2 = identity("Hello"); // "Hello"