title: Short(er) hand for min max percentage?
body: <p>I have a function that converts two values to a percentage within a range, in this case between 15000 and 100000. It feels very clunky. Is there a more simple way to express this which is easy/easier to understand?</p>
  
  <pre><code>price2percent = (sale) =&gt; {
      let price = sale.soldPrice / sale.livingArea;
      // Specifically these values
      price = price &gt; 100000 ? 100000 : price;
      price = price &lt; 15000 ? 15000 : price;
  
      return (price - 1500) / 85000;
  } 
  </code></pre>