Last active
July 31, 2017 21:25
-
-
Save gdekefir/ac07502569ccbb278c462a1d34f087c6 to your computer and use it in GitHub Desktop.
Transform all keys
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
var mapKeys = useWith(compose(fromPairs, call), [o(map, adjust(__, 0)), toPairs]) | |
mapKeys(R.toUpper, { a: 1, b: 2, c: 3 }); //=> {"A": 1, "B": 2, "C": 3} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment