fix ci lint

see https://eslint.org/docs/rules/no-prototype-builtins
This commit is contained in:
Kai Roeder 2019-07-26 23:57:59 +02:00
parent 9a690e813b
commit 894fd09125

View File

@ -86,7 +86,11 @@ export class AppComponent implements OnInit, OnDestroy {
const previousValue = this.previousValues[key];
if (previousValue !== value) {
changes[key] = new SimpleChange(previousValue, value, !this.previousValues.hasOwnProperty(key));
changes[key] = new SimpleChange(
previousValue,
value,
!Object.prototype.hasOwnProperty.call(this.previousValues, key)
);
this.previousValues[key] = value;
}
}