title: Wildcard string comparison in Javascript
body: <p>Let's say I have an array with many Strings Called <code>"birdBlue"</code>, <code>"birdRed"</code> and some other animals like <code>"pig1"</code>, <code>"pig2"</code>).</p>
  
  <p>Now I run a for loop that goes through the array and should return all birds. What comparison would make sense here?</p>
  
  <p><code>Animals == "bird*"</code> was my first idea but doesn't work. Is there a way to use the operator * (or is there something similar to use?</p>