Skip to content

Commit 093db49

Browse files
author
Brian Vaughn
committed
Replaced [] access with hasOwnProperty in UnorderedSearchIndex search()
1 parent 8132ae1 commit 093db49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/SearchIndex/UnorderedSearchIndex.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export class UnorderedSearchIndex implements ISearchIndex {
4949
for (var i = 0; i < numKeys; i++) {
5050
var uid = keys[i];
5151

52-
if (!documentMap[uid]) {
52+
if (!documentMap.hasOwnProperty(uid)) {
5353
delete intersectingDocumentMap[uid];
5454
}
5555
}

0 commit comments

Comments
 (0)