reinstated select multiple behavior

This commit is contained in:
lotte
2019-07-26 16:46:31 +02:00
parent 650b77081f
commit 16feb61ebf
15 changed files with 162 additions and 88 deletions

View File

@@ -33,7 +33,7 @@ export abstract class EquatableObject<T> {
return true;
}
const excludedKeys = getExcludedFromEqualsFor(this.constructor);
const keys = Object.keys(this).filter((key) => excludedKeys.findIndex((excludedKey) => key === excludedKey) < 0);
const keys = Object.keys(this).filter((key) => !excludedKeys.includes(key));
return equalsByFields(this, other, keys);
}
}