Created
June 18, 2019 16:13
-
-
Save hacker-DOM/c9d4c96ef1570df97eff6e88c18e3b5e 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
var mapObjIndexed = _curry2(function mapObjIndexed(fn, obj) { | |
return _reduce(function(acc, key) { | |
acc[key] = fn(obj[key], key, obj); | |
return acc; | |
}, {}, keys(obj)); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment