title: JavaScript - filter with wildcard (*)
body: <p>I want to filter over a collection of items with an eventual wildcard.</p>
  
  <p>Let's say, I have the following items:</p>
  
  <pre><code>const items = ['Banana', 'Apple', 'Melon']
  </code></pre>
  
  <p>I now want to filter with the following strings:</p>
  
  <pre><code>e
  </code></pre>
  
  <p>Expected output: None</p>
  
  <pre><code>*e
  </code></pre>
  
  <p>Expected output: Apple</p>
  
  <pre><code>*e*
  </code></pre>
  
  <p>Expected output: Apple, Melon</p>
  
  <pre><code>ana
  </code></pre>
  
  <p>Expected output: None</p>
  
  <pre><code>*ana
  </code></pre>
  
  <p>Expected output: Banana</p>
  
  <pre><code>*an
  </code></pre>
  
  <p>Expected output: none</p>
  
  <pre><code>*an*
  </code></pre>
  
  <p>Expected output: Banana</p>
  
  <p>I hope you get my intention. Is there any smart way to do it with regex or standard JS functions / libraries? I couldn't find something so far.</p>