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
const ZERO = 0; | |
const ONE = 1; | |
const TWO = 2; | |
/** | |
* Checks if a's state satisfies a certain requirement so that the | |
* caller function can understand what's happening with a and | |
* process accordingly. | |
*/ | |
function checkA(a) { |