typedash
Version:
modern, type-safe collection of utility functions
16 lines (14 loc) • 331 B
text/typescript
/**
* 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' }
* ```
*/
declare function identity<T>(value: T): T;
export { identity };