title: Filtering an object by property in Ramda.js
body: <p>I'm new to using Ramda.js and am wondering how I can filter an object based on specified properties.</p>
  
  <p>Looking at <a href="http://ramdajs.com/0.21.0/docs/#filter" rel="nofollow"><code>R.filter</code></a>, it seems that <code>_.filter</code> only passes the object <em>value</em> and not the property. For instance, the example given in the REPL:</p>
  
  <pre><code>var isEven = (n, prop) =&gt; {
    console.log(typeof prop);
  
    // =&gt; 
    // undefined
    // undefined
    // undefined
    // undefined
  
    return n % 2 === 0;
  }
  
  R.filter(isEven, {a: 1, b: 2, c: 3, d: 4}); //=&gt; {b: 2, d: 4}
  </code></pre>
  
  <hr>
  
  <p>If I have the following object:</p>
  
  <pre><code>const obj = {a: 1, b: 2, c: 3};
  </code></pre>
  
  <p>My desired result would be:</p>
  
  <pre><code>const filterProp = (x) =&gt; /* some filter fn */;
  
  filterProp('b')(obj);
  
  // =&gt; {a: 1, c: 3};
  </code></pre>
  
  <p><em>How can I use Ramda to filter the properties of an object?</em></p>