We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c3ddf2 commit 0c37df9Copy full SHA for 0c37df9
index.js
@@ -83,7 +83,7 @@ module.exports = function arrayToTree(data, options) {
83
throw new TypeError('Expected an object but got an invalid argument');
84
}
85
86
- var grouped = groupByParents(data, options);
+ var grouped = groupByParents(data.slice(), options);
87
return createTree(
88
grouped,
89
grouped[options.rootID],
0 commit comments