title: How to use columns of array item in delete_if?
body: <p>I want to delete certain items from an array when they meet a condition. I read that this is possible with <code>delete_if</code> or <code>reject</code>, but how can I access the columns/properties of that item.</p>
  
  <p>For example if I want to delete all items from an array which id's are higher than 10, I would want to use something like this:</p>
  
  <pre><code>@randomArray.delete_if { |i| i.id &gt; 10}
  </code></pre>
  
  <p>Is this possible?</p>