title: Filter an array based on an object property
body: <p>I have an array of objects, something as follows:</p>
  
  <pre><code>var events = [
    { date: "18-02-2016", name: "event A" },
    { date: "22-02-2016", name: "event B" },
    { date: "19-02-2016", name: "event C" },
    { date: "22-02-2016", name: "event D" }
  ];
  </code></pre>
  
  <p>And I have a date, for example "22-02-2016". How can I get an array with all object which date is the same as the given date? So in this example I would get events B and D.</p>