title: How to search Javascript Array, and return all strings in array that start with X
body: <p>I was wondering what the best approach would be to search a javascript array of strings, and return all strings in that array that begin with a given string.</p>
  
  <p>If anybody has any ideas, or if there is an even easier way of achieving this with JQuery please help me out!</p>
  
  <p>For Example,</p>
  
  <pre><code>var arrayOfStrings = ["apple", "banana", "peach", "orange", "plum"];
  var searchString = "p";
  </code></pre>
  
  <p>So if I search <code>arrayOfStrings</code> with <code>searchString</code> it would return <code>plum</code> and <code>peach</code></p>