identity
identity() function
Returns the same value as the given argument.
Signature:
declare function identity<T>(a: T): T;
Returns:
T
Example
identity(5); // 5
Returns the same value as the given argument.
Signature:
declare function identity<T>(a: T): T;
Returns:
T
identity(5); // 5