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 c6601fb commit 9e74a96Copy full SHA for 9e74a96
index.js
@@ -66,7 +66,6 @@ module.exports = function arrayToTree(data, options) {
66
throw new TypeError('Expected an object but got an invalid argument');
67
}
68
69
- var cloned = data.slice();
70
- var grouped = groupByParents(cloned, options);
+ var grouped = groupByParents(data, options);
71
return createTree(grouped, grouped[options.rootID], options.customID);
72
};
0 commit comments