Skip to content

Commit

Permalink
[Refactor] parse: use utils.combine more
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jan 14, 2025
1 parent b189ed4 commit 25956a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ var parseObject = function (chain, val, options, valuesParsed) {
if (root === '[]' && options.parseArrays) {
obj = options.allowEmptyArrays && (leaf === '' || (options.strictNullHandling && leaf === null))
? []
: [].concat(leaf);
: utils.combine([], leaf);
} else {
obj = options.plainObjects ? { __proto__: null } : {};
var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
Expand Down

0 comments on commit 25956a7

Please sign in to comment.