Last active
December 17, 2021 00:40
-
-
Save akihisa-shimada/ed241580b2f441b91e98f5d9bfe472f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function identity<T>(arg: T): T { | |
return arg; | |
} | |
console.log(identity<string>("string")); | |
console.log(identity(1)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment