Skip to content

Commit

Permalink
Fix list()
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Mar 13, 2022
1 parent d315dac commit 901dabc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/normalize/lib/wild_wild_path/get.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { iterate } from './iterate/main.js'
// Unlike `get|has()` it also return missing entries, letting consumers filter
// them or not.
export const list = function (target, queryOrPath) {
return iterate(target, queryOrPath)
return [...iterate(target, queryOrPath)]
}

// Retrieve a single property's value in `target` matching a query string.
Expand Down

0 comments on commit 901dabc

Please sign in to comment.