Question from the Typescript - Overview test

Create a generic identity function that returns the passed value in Typescript

Easy

How to create a generic identity function that returns the passed value?

Author: Vincent CotroStatus: PublishedQuestion passed 956 times
Edit
4
Community Evaluations
developer avatar
Yoan
23/10/2024
Why any type doesn't work ?
developer avatar
Subhi Yarmemet
30/10/2024
Because of the "Type"Script if I'm not wrong !