A fairly basic JavaScript question, on a ternary condition how can I do to take action only on an if without the need of the else?
Example
(test) ? test1() : test2();
If you do not want anything to happen at Else, how would you look?
I tried, do as in PHP more did not work:
(!test) ?: test1();