Skip to content

Instantly share code, notes, and snippets.

@roberto
Last active January 25, 2018 02:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roberto/aed2b08e25b8329ecc3cba5a7ed45974 to your computer and use it in GitHub Desktop.
Save roberto/aed2b08e25b8329ecc3cba5a7ed45974 to your computer and use it in GitHub Desktop.
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