Created
June 22, 2018 23:06
-
-
Save kennetpostigo/48fda1b2e92384437249d85db33f8b9e to your computer and use it in GitHub Desktop.
Reason BST Blog Post compare
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
let compare = (f, s) => | |
if (f < s) { | |
(-1); | |
} else if (f > s) { | |
1; | |
} else { | |
0; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment