Skip to content

Instantly share code, notes, and snippets.

@darylwright
Created June 1, 2023 12:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darylwright/75332f27a6e9bff70bc0406114570829 to your computer and use it in GitHub Desktop.
Save darylwright/75332f27a6e9bff70bc0406114570829 to your computer and use it in GitHub Desktop.
This is an example code snippet used for test data
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