Last active
January 25, 2018 02:19
-
-
Save roberto/aed2b08e25b8329ecc3cba5a7ed45974 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
const isOld = R.gt(R.__, 33) | |
const getOldPeople = R.pipe( | |
R.prop("users"), | |
R.filter(R.where({age: isOld})) | |
) | |
const getOldPeople = R.pipe( | |
R.prop("users"), | |
R.filter(R.propSatisfies(isOld, 'age')) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment