UNPKG

typedash

Version:

modern, type-safe collection of utility functions

1 lines 530 B
{"version":3,"file":"identity-Dr7g_Nb2.cjs","names":[],"sources":["../src/functions/identity/identity.ts"],"sourcesContent":["/**\n * Returns the input value.\n * @template T The type of the input value.\n * @param value The input value.\n * @returns The input value.\n * @example\n * ```ts\n * identity('foo') // 'foo'\n * identity(42) // 42\n * identity({ foo: 'bar' }) // { foo: 'bar' }\n * ```\n */\nexport function identity<T>(value: T): T {\n return value;\n}\n"],"mappings":";;;;;;;;;;;;;;AAYA,SAAgB,SAAY,OAAa;AACvC,QAAO"}