I have a two dimensional array:
array = [["car","dog","kenya"],["plane", "cat", "kenya"],["boat", "mouse", "england"]]
I would like to filter by country and return all the animals "associated" with that country in another array.
For example filtering by Kenya places dog and cat into another array.
Hope that makes sense. Any help would be most appreciated. Thanks.