This commit is contained in:
Kim Biesbjerg 2019-09-18 14:04:11 +02:00
parent 3827789346
commit 2fce357306

View File

@ -57,8 +57,7 @@ export class TranslationCollection {
public intersect(collection: TranslationCollection): TranslationCollection { public intersect(collection: TranslationCollection): TranslationCollection {
const values: TranslationType = {}; const values: TranslationType = {};
this.filter(key => collection.has(key)); this.filter(key => collection.has(key)).forEach((key, val) => {
this.forEach((key, val) => {
values[key] = val; values[key] = val;
}); });