Skip to content

Commit

Permalink
Start refactoring pick()
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Mar 20, 2022
1 parent 388f376 commit 55b11c3
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/config/normalize/lib/wild_wild_utils/include.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ export const pick = function (
query,
{ sort, classes, inherited } = {},
) {
return reduceParents(
pickEntry.bind(undefined, { classes, inherited }),
returnTrue,
{ target, newTarget: {}, query, sort, entries: false, classes, inherited },
)
return include(target, query, returnTrue, {
sort,
entries: false,
classes,
inherited,
})
}

const returnTrue = function () {
Expand Down

0 comments on commit 55b11c3

Please sign in to comment.