Skip to content

fx-flow v0.7.0 / pipe/strict / identity

Function: identity()

identity<A>(args): A

Return the same value as the given argument.

Type parameters

A

Parameters

args: A

Returns

A

Example

typescript
identity(5); // 5

More examples

Source

packages/core/src/pipe/strict/identity.ts:11

Released under the MIT License.