Created
June 11, 2015 03:35
-
-
Save jeremiahbiard/7d9e64149c87d876d95c to your computer and use it in GitHub Desktop.
Map/Filter chaining javascript
This file contains 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
return newReleases.filter(function(movie) { | |
return (movie.rating === 5.0); | |
}).map(function(movie) { | |
return movie.id; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment