Created
May 26, 2021 18:52
-
-
Save sergueyarellano/5f600c43b56b0600f39bb1d0b17aefeb 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
function mapKeysWith (data, contract) { | |
const contractProps = invert(contract) | |
return mapKeys(data, function (value, key) { | |
return contractProps[key] | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment