I have the following Hash -
{ result: [ {id: 378, name: 'Pete'}, {id: 567, name: 'Pete'} ] }
I want to extract array of id's from this hash, something like this -
[378, 567]
Whats the shortest way to do it, apart from looping through the result array. Theres a map method for this but I am not quite sure how to use it.
Help is appreciated.