title: How to filter an object with its values in ES6
body: <p>What is the best way to filter an object this way in ES6?</p>
  
  <p>Starting data:</p>
  
  <pre><code>const acceptedValues = ["value1","value3"]
  const myObject = {
      prop1:"value1",
      prop2:"value2",
      prop3:"value3"
  }
  </code></pre>
  
  <p>Expected output:</p>
  
  <pre><code>filteredObject = {
      prop1:"value1",
      prop3:"value3"
  }
  </code></pre>