Created
January 6, 2012 02:28
-
-
Save timmyc/1568641 to your computer and use it in GitHub Desktop.
unique venues
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shows = [{venue_id : 1, venue : 'The Showbox', date : '', acts : 'Pearl Jam,Soundgarden', featured : false, lat : '', long : ''},{venue_id : 2, venue : 'The Croc', date : '', acts : 'Sweeetwater', featured : false, lat : '', long : ''},{venue_id : 3, venue : 'Paramount', date : '', acts : 'Alice in Chains', featured : false, lat : '', long : ''},{venue_id : 1, venue : 'The Showbox', date : '', acts : 'Blue Scholars', featured : false, lat : '', long : ''}]; | |
venues = {}; | |
_.each(shows, function(o){ venues[o.venue_id] = o }); | |
unique_venues = _.values(venues); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment