mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 02:17:50 +00:00
Apply even more let/const transforms.
This commit is contained in:
@@ -25,7 +25,7 @@ function pickBy(object, predicate) {
|
||||
if (object == null) {
|
||||
return {};
|
||||
}
|
||||
var props = arrayMap(getAllKeysIn(object), prop => [prop]);
|
||||
const props = arrayMap(getAllKeysIn(object), prop => [prop]);
|
||||
predicate = baseIteratee(predicate);
|
||||
return basePickBy(object, props, (value, path) => predicate(value, path[0]));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user