title: Find exact number match in array?
body: <p>checkArray is: [10 item a, 11 item b, 25 item c]</p>
  
  <p>Now I have a number say 25, I want to check if in array then return that array.<br>
  works but if I test 1, it matches the 10 item. </p>
  
  <p>So do I need to test for a full number match? Or parse array string till space then test for exact match???</p>
  
  <pre><code>for (var i=0; i &lt; checkArray.length; i++) {
  
      var regexp = item;
  
      if ( checkArray[i].match(regexp)) {   
          return checkArray[i];
      }
  
      return false;
  }
  </code></pre>