Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/core/notation.js
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,9 @@ class Notation {
return false;
}
// console.log(' » setting', levelNotation, '=', value);
filtered.set(levelNotation, value, 'overwrite');
if(originalNotation == levelNotation) {
filtered.set(levelNotation, value, 'overwrite');
}
}
});
}, reverseIterateIfArray);
Expand Down
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const utils = {
return keyOrIndex && objProto.hasOwnProperty.call(collection, keyOrIndex);
}
if (typeof keyOrIndex === 'number') {
return keyOrIndex >= 0 && keyOrIndex < collection.length;
return keyOrIndex >= 0 && collection[keyOrIndex] !== undefined
}
return false;
},
Expand Down