title: Is there a better way to ensure a number is positive?
body: <p>I want to ensure that a number is positive, and if not return its mirror</p>
  
  <p>I have started with this</p>
  
  <p><code>var pos = Math.sqrt(x*x);</code></p>
  
  <p>Is there a better, more efficient way?</p>