title: JS shortcut affect if superior
body: <p>is there a way to minimize this type of code plz :</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>position = newPosition &gt; position ? newPosition : position;</code></pre>
  </div>
  </div>
  </p>
  <p>This code is in a forEach. I'm pretty sur there's a way to achieve it but I can't remember...</p>
  <p>Thanks all !</p>