Question from the Typescript - Overview test

Create a generic reverseArray function to reverse the elements of an array while maintaining type safety.

Hard

How to create a generic compare function to compare two elements of any type and return the larger one according to a provided comparison function?

Author: Johana LavigneStatus: Published(Update)Question passed 3 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!