Skip to content

Instantly share code, notes, and snippets.

@laere
Created February 9, 2016 16:16
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 laere/8597038a19e99f632784 to your computer and use it in GitHub Desktop.
Save laere/8597038a19e99f632784 to your computer and use it in GitHub Desktop.
filterMovies: function() {
var moviePosters = [];
for (var i; i <= 5; i++) {
if(apiData.rating >= 8) {
return moviePosters.push(apiData.Poster[i]);
} else {
return;
}
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment