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 54e37d2 commit 6745f97Copy full SHA for 6745f97
index.js
@@ -96,7 +96,7 @@ module.exports = function arrayToTree(data, options) {
96
);
97
98
if (!Array.isArray(data)) {
99
- throw new TypeError('Expected an object but got an invalid argument');
+ throw new TypeError('Expected an array but got an invalid argument');
100
}
101
102
var grouped = groupByParents(deepClone(data), options);
0 commit comments