Fixin new map imports.

This commit is contained in:
Michał Lipiński
2017-04-18 09:33:58 +02:00
parent e5e8f35c06
commit bb059c0f64
14 changed files with 28 additions and 28 deletions

View File

@@ -1,4 +1,4 @@
import arrayMap from './.internal/arrayMap.js'
import map from './map.js'
import basePickBy from './.internal/basePickBy.js'
import getAllKeysIn from './.internal/getAllKeysIn.js'
@@ -22,7 +22,7 @@ function pickBy(object, predicate) {
if (object == null) {
return {}
}
const props = arrayMap(getAllKeysIn(object), (prop) => [prop])
const props = map(getAllKeysIn(object), (prop) => [prop])
return basePickBy(object, props, (value, path) => predicate(value, path[0]))
}