mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 08:57:49 +00:00
Remove baseForOwn from several modules.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import baseAssignValue from './.internal/baseAssignValue.js'
|
||||
import baseForOwn from './.internal/baseForOwn.js'
|
||||
|
||||
/**
|
||||
* Creates an object with the same keys as `object` and values generated
|
||||
@@ -25,7 +24,7 @@ import baseForOwn from './.internal/baseForOwn.js'
|
||||
*/
|
||||
function mapValues(object, iteratee) {
|
||||
const result = {}
|
||||
baseForOwn(object, (value, key, object) => {
|
||||
Object.keys(object).forEach((value, key, object) => {
|
||||
baseAssignValue(result, key, iteratee(value, key, object))
|
||||
})
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user