Created
February 9, 2016 16:16
-
-
Save laere/8597038a19e99f632784 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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