The identity function which returns the passed value as is.
import { assertEquals } from "../deps.ts";import { id } from "./func.ts";assertEquals(id(2), 2);assertEquals(id("foo"), "foo"); Copy
import { assertEquals } from "../deps.ts";import { id } from "./func.ts";assertEquals(id(2), 2);assertEquals(id("foo"), "foo");
Generated using TypeDoc
The identity function which returns the passed value as is.
Examples