Actually, you CAN do a sort of ternary without the else.
It's not technically a ternary, but serves the same purpose, and has a similarly spiffy simplified format.
It's a trick called Short Circuiting.
i===1 && i++;
See, that code is treated as a pair of "if" tests connected by AND. When you do a series of AND conditional tests, the moment any of them fail (parsing left to right) the rest are ignored.
So you can put any assignment or operation after a test, and it will only happen if the test succeeds.
refrigerator && beer();
...will only run beer if there is refrigerator.
refrigerator && beer() && drunk = "Woah Nelly";
...will only run beer if refrigerator is truthy, and only if beer returns truthy will drunk be set to "Woah Nelly".
If it gets complicated, you can format it like this:
refrigerator
&& beer()
&& drunk == "Woah Nelly"
&& toilet = barf();
In your case, only if i is equal to a strictly typed 1 is it incremented by the ++;
;at the end of your statement?