title: Find all matching elements with in an array of objects
body: <p>I have an array of objects</p>
  
  <p>I am searching within the array like this</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>let arr = [
      { name:"string 1", arrayWithvalue:"1,2", other: "that" },
      { name:"string 2", arrayWithvalue:"2", other: "that" },
      { name:"string 2", arrayWithvalue:"2,3", other: "that" },
      { name:"string 2", arrayWithvalue:"4,5", other: "that" },
      { name:"string 2", arrayWithvalue:"4", other: "that" },
  ];
  var item  = arr.find(item =&gt; item.arrayWithvalue === '4'); 
  console.log(item)</code></pre>
  </div>
  </div>
  </p>
  
  <p>This should return an array with this two rows</p>
  
  <pre><code>{ name:"string 2", arrayWithvalue:"4,5", other: "that" },
  { name:"string 2", arrayWithvalue:"4", other: "that" }
  </code></pre>
  
  <p>It returns only one row which is the first match.</p>
  
  <pre><code>{ name:"string 2", arrayWithvalue:"4", other: "that" }
  </code></pre>
  
  <p>I do not want to use any external libraries for this. How can I return all the matches that match the criteria?</p>