Skip to content

Instantly share code, notes, and snippets.

@dylanvee
Last active December 20, 2015 01:29

Revisions

  1. dylanvee revised this gist Jul 21, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.js
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    var teaser = _.chain(data.stories)
    .pluck("teaser")
    .filter(function(t) { return !!t.length })
    .filter(function(t) { return !!t.length; })
    .shuffle()
    .first()
    .value();
  2. dylanvee revised this gist Jul 21, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.js
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    var teaser = _.chain(data.stories)
    .pluck("teaser")
    .filter(function(t) { return t && t.length })
    .filter(function(t) { return !!t.length })
    .shuffle()
    .first()
    .value();
  3. dylanvee created this gist Jul 21, 2013.
    6 changes: 6 additions & 0 deletions gistfile1.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    var teaser = _.chain(data.stories)
    .pluck("teaser")
    .filter(function(t) { return t && t.length })
    .shuffle()
    .first()
    .value();