Skip to content

Instantly share code, notes, and snippets.

@timmyc
Created January 6, 2012 02:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timmyc/1568641 to your computer and use it in GitHub Desktop.
Save timmyc/1568641 to your computer and use it in GitHub Desktop.
unique venues
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