Remove baseForOwn from several modules.

This commit is contained in:
John-David Dalton
2017-03-04 23:26:27 -08:00
parent 17f7069d07
commit 3c2795b816
8 changed files with 31 additions and 28 deletions

View File

@@ -1,5 +1,4 @@
import baseAssignValue from './.internal/baseAssignValue.js'
import baseForOwn from './.internal/baseForOwn.js'
/**
* The opposite of `mapValues` this method creates an object with the
@@ -22,7 +21,7 @@ import baseForOwn from './.internal/baseForOwn.js'
*/
function mapKeys(object, iteratee) {
const result = {}
baseForOwn(object, (value, key, object) => {
Object.keys(object).forEach((value, key, object) => {
baseAssignValue(result, iteratee(value, key, object), value)
})
return result