UNPKG

typedash

Version:

modern, type-safe collection of utility functions

26 lines (24 loc) 520 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 Object.defineProperty(exports, 'identity', { enumerable: true, get: function () { return identity; } }); //# sourceMappingURL=identity-Dr7g_Nb2.cjs.map