Created
May 28, 2021 18:32
-
-
Save sergueyarellano/960a26580a9836c1bcf1aed6addd0526 to your computer and use it in GitHub Desktop.
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
function applyFilters (filters) { | |
return data => data.filter(element => filters.every(filter => filter(element))) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment