Skip to content

Instantly share code, notes, and snippets.

@krzysztofczernek
Created September 18, 2019 16:47
Show Gist options
  • Save krzysztofczernek/b89818e84332d24595088f5fad877497 to your computer and use it in GitHub Desktop.
Save krzysztofczernek/b89818e84332d24595088f5fad877497 to your computer and use it in GitHub Desktop.
const R = require('ramda')
const selectedNames = users => selectedUserIds => {
return selectedUserIds
.map(R.unary(parseInt))
.map(userId => users[userId])
.map(R.prop('name'))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment