Skip to content

Instantly share code, notes, and snippets.

@dylanvee
Created July 21, 2013 20:40
Show Gist options
  • Save dylanvee/6049889 to your computer and use it in GitHub Desktop.
Save dylanvee/6049889 to your computer and use it in GitHub Desktop.
var teaser = _.chain(data.stories)
.pluck("teaser")
.filter(function(t) { return t && t.length })
.shuffle()
.first()
.value();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment