title: Return index of nearest values in an array
body: <p>I have this:</p>
  
  <pre><code>var scores=[0.7, 1.05, 0.81, 0.96, 3.2, 1.23];
  </code></pre>
  
  <p>What's the more readable way to return the indexes of the nearest values to another variable?</p>
  
  <p>For instance: </p>
  
  <p>With variable = 1  Should return <code>{ low: 3, high: 1 }</code></p>