title: How do I get the array value where the key, which is the number, is the next lowest value?
body: <p>if I have this array in javascript:</p>
  
  <pre><code>array[1] = 'blue';
  array[25] = 'green';
  array[50] = 'yellow';
  array[75] = 'orange';
  array[100] = 'red';
  </code></pre>
  
  <p>and I have:</p>
  
  <pre><code>number = 35
  </code></pre>
  
  <p>how do I get to:</p>
  
  <pre><code>output = 'green';
  </code></pre>