Created
September 18, 2019 16:47
-
-
Save krzysztofczernek/b89818e84332d24595088f5fad877497 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
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