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 937 times
Edit
3
Community Evaluations
developer avatar
Yoan
23/10/2024
Why any type doesn't work ?