Question from the Typescript - Overview test

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

Waiting for validation
Original question

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?

New question

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: Simon PrieulStatus: Waiting for validation(Update)Question not yet passed
0
Community EvaluationsNo one has reviewed this question yet, be the first!