typedash
Version:
modern, type-safe collection of utility functions
1 lines • 493 B
Source Map (JSON)
{"version":3,"sources":["../../src/functions/identity/identity.ts"],"names":[],"mappings":";AAYO,SAAS,SAAY,OAAa;AACvC,SAAO;AACT","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"]}