How to use an if shorthand without an else in JavaScript

How to use an if shorthand without an else in JavaScript