We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Map object keys and returning a new object with key mapped.
let _ = require('underscore'); module.exports = (o, f) => _.object( _.map( _.pairs(o), (keyValue) => [f(keyValue[0], keyValue[1]), keyValue[1]] ) );
The text was updated successfully, but these errors were encountered:
Try _.keys with a _.map.
_.keys
_.map
Sorry, something went wrong.
I want to have a function that returns an object with mapped keys.
mapKeys :: ( Object, KeyMappingFunction ) -> Object
This is more than combining _.keys and _.map.
See lodash/mapKeys or lodash.mapkeys.
No branches or pull requests
Map object keys and returning a new object with key mapped.
The text was updated successfully, but these errors were encountered: