UNPKG

typedash

Version:

modern, type-safe collection of utility functions

20 lines (19 loc) 429 B
//#region src/functions/identity/identity.ts /** * Returns the input value. * @template T The type of the input value. * @param value The input value. * @returns The input value. * @example * ```ts * identity('foo') // 'foo' * identity(42) // 42 * identity({ foo: 'bar' }) // { foo: 'bar' } * ``` */ function identity(value) { return value; } //#endregion export { identity as t }; //# sourceMappingURL=identity-Cjy-FxrF.js.map