I have an array of arrays that also contains hash value , and that array has duplicate arrays that I want to remove. There is an example below :
[[“John, Doe“, "/manager/consumer/123456?status=1", {:data=>{:id=>123456}, :class=>""}],
[“Jane, smith“, "/manager/consumer/7891011?status=1", {:data=>{:id=>7891011}, :class=>""}],
[“William, Smith”, "/manager/consumer/12131415?status=1", {:data=>{:id=>1211415}, :class=>""}],
[“John, Doe“, "/manager/consumer/123456?status=1", {:data=>{:id=>123456}, :class=>""}]]
As we can see there are two arrays that are same(first and last), I would like to remove the duplicate one based on the :id present in the hash inside the array ?