I have a multi-dimensional array of this form:
array = [["http://domain.com/product.html", 10], ["http://domain.com/product.html", 150], ["http://domain.com/product.html", 500]]
I need to delete all arrays that have the last value smaller than 150.
I already tried the following, but it doesn't seem to have any effect:
array.delete_if {|element| element.last < 150 }
Any help will be highly appreciated. Thanks.