Skip to content

Commit 25956a7

Browse files
committed
[Refactor] parse: use utils.combine more
1 parent b189ed4 commit 25956a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/parse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ var parseObject = function (chain, val, options, valuesParsed) {
155155
if (root === '[]' && options.parseArrays) {
156156
obj = options.allowEmptyArrays && (leaf === '' || (options.strictNullHandling && leaf === null))
157157
? []
158-
: [].concat(leaf);
158+
: utils.combine([], leaf);
159159
} else {
160160
obj = options.plainObjects ? { __proto__: null } : {};
161161
var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;

0 commit comments

Comments
 (0)