Last active
February 22, 2017 11:49
-
-
Save chreke/f88bb62f3f814e43cb776c43bde0cc6c 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
let filters = [f1, f2, f3] | |
let users = [u1, u2, u3, u4, u5] | |
users.filter((user) => { | |
for f in filters { | |
if (!f(user)) { | |
return false | |
} | |
} | |
return true | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment