diff --git a/src/Model/Utility/utility.ts b/src/Model/Utility/utility.ts index 20b55852..7f3c6267 100644 --- a/src/Model/Utility/utility.ts +++ b/src/Model/Utility/utility.ts @@ -34,8 +34,8 @@ export function filterObjectsByStringEntries( reference: StringEntryObject, converter: (T) => StringEntryObject, objects: T[] -): T[] { - const matches: any[] = []; +): Set { + const matches: Set = new Set() object_loop: for (const object of objects) { reference_entry_loop: for (const referenceEntry of Object.entries( @@ -77,7 +77,7 @@ export function filterObjectsByStringEntries( } } } - matches.push(object); + matches.add(object); } return matches;