Created
June 1, 2023 12:50
-
-
Save darylwright/75332f27a6e9bff70bc0406114570829 to your computer and use it in GitHub Desktop.
This is an example code snippet used for test data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default function compare<T>(a0: T, b0: T): number { | |
if (a0 === b0) return 0; | |
if (a0 > b0) return 1; | |
return -1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment