Package: effect
Module: Function
The identity function, i.e. A function that returns its input argument.
Example
import * as assert from "node:assert"
import { identity } from "effect/Function"
assert.deepStrictEqual(identity(5), 5)
Signature
declare const identity: <A>(a: A) => A
Since v2.0.0