Guest User

Untitled

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