Use ternary operator and updated formatting, see https://github.com/phetsims/joist/issues/503
Use ternary operator and updated formatting, see https://github.com/phetsims/joist/issues/503

phetsims/joist,phetsims/joist,phetsims/joist