Skip to content

Instantly share code, notes, and snippets.

@tgallant
Created January 27, 2015 19:26
Show Gist options
  • Save tgallant/058dae84327168125f97 to your computer and use it in GitHub Desktop.
Save tgallant/058dae84327168125f97 to your computer and use it in GitHub Desktop.
// sort items array and return the first three items
{{#items.sort(function() { return .5 - Math.random(); }).splice(0,3)}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment