underscore
underscore copied to clipboard
Alias mapObject to mapValues
For the record, I like _.mapObject better. But this change was undiscussed.
Re: https://github.com/jashkenas/underscore/issues/2061, 4f771e0
_.mapValues makes more sense to me as you are only manipulating the values in the object and not the keys. _.mapObject implies a limited set of functionality that _.transform has.
:+1:
I like the alias, but the PR should also update tests.
@captbaritone: You got it. :wink: