Guest User

Untitled

a guest
Dec 12th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. function identity<T>(arg: T): T {
  2. return arg;
  3. }
  4.  
  5. const test0 = identity<string>('foo');
  6.  
  7. const test1 = identity<number>(3);
Add Comment
Please, Sign In to add comment