title: How to use Ramda remove to remove empty object from Array of objects?
body: <p><strong><a href="http://ramdajs.com/0.21.0/docs/#remove" rel="nofollow noreferrer">Ramda remove</a></strong> : <a href="http://ramdajs.com/repl/?v=0.22.1#?var%20objArray%20%3D%20%5B%0A%20%20%7B%0A%20%20%20%20id%3A%201%2C%0A%20%20%20%20name%3A%20%27Leon%27%0A%20%20%7D%2C%0A%20%20%7B%0A%20%20%20%20id%3A%202%2C%0A%20%20%20%20name%3A%20%27Paulo%27%0A%20%20%7D%2C%0A%20%20%7B%0A%20%20%20%20%0A%20%20%7D%0A%5D%0A%0A%2F%2FR.remove%282%2C%203%2C%20%5B1%2C2%2C3%2C4%2C5%2C6%2C7%2C8%5D%29%3B%20%2F%2F%3D%3E%20%5B1%2C2%2C6%2C7%2C8%5D%0A%0A%2F%2FR.remove%28%7B%7D%2C%20objArray%29%3B%0AR.remove%28R.isEmpty%2C%20objArray%29%3B%0A%0A" rel="nofollow noreferrer">Ramda Repl link</a></p>
  
  <p>The following is the given example, it removes specific numbers from an Array:</p>
  
  <p><code>R.remove(2, 3, [1,2,3,4,5,6,7,8]); //=&gt; [1,2,6,7,8]</code></p>
  
  <p>Now I created an Array of objects, one being empty:</p>
  
  <pre><code>var objArray = [{id: 1, name: 'Leon'},{id: 2, name: 'Paulo'},{}];
  </code></pre>
  
  <p>When I try:</p>
  
  <p><code>R.remove({}, objArray);</code></p>
  
  <p>or</p>
  
  <p><code>R.remove(R.isEmpty, objArray);</code></p>
  
  <p>It returns a function:</p>
  
  <p><a href="https://i.stack.imgur.com/lr6Wk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lr6Wk.png" alt="enter image description here"></a></p>
  
  <p>Why would that be you suppose?</p>