This commit is contained in:
toasted-nutbread 2020-02-15 12:31:11 -05:00
parent 886278b19d
commit 1f62dfa572

View File

@ -153,11 +153,11 @@ class Database {
this._validate();
const promises = [];
const visited = {};
const visited = new Set();
const results = [];
const processRow = (row, index) => {
if (titles.includes(row.dictionary) && !hasOwn(visited, row.id)) {
visited[row.id] = true;
if (titles.includes(row.dictionary) && !visited.has(row.id)) {
visited.add(row.id);
results.push(Database._createTerm(row, index));
}
};