title: Can I use wildcards when searching an array of strings in Javascript?
body: <p>Given an array of strings:</p>
  
  <pre><code>x = ["banana","apple","orange"]
  </code></pre>
  
  <p>is there a built in shortcut for performing wildcard searches?</p>
  
  <p>ie., maybe </p>
  
  <pre><code>x.indexOf("*na*") //returns index of a string containing the substring na
  </code></pre>