Question:
How would you rewrite this function to be generic without using "any"? function identity(arg: any): any { return arg }
Author: John PencolaAnswer:
By using generic type-parameters function identity<T>(arg: <T>): <T> { return arg }
0 / 5 Â (0 ratings)
1 answer(s) in total