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 257673e commit 1e13731Copy full SHA for 1e13731
index.js
@@ -30,7 +30,7 @@ var groupByParents = function(array, options) {
30
31
return array.reduce(function(prev, item) {
32
var parentID = property.get(item, options.parentProperty);
33
- if (!parentID || !(parentID in arrayByID)) {
+ if (!parentID || !arrayByID.hasOwnProperty(parentID)) {
34
parentID = options.rootID;
35
}
36
0 commit comments