chore(): enable "prefer-for-of"

This commit is contained in:
Manu Mtz.-Almeida
2018-07-30 00:11:04 +02:00
parent d1fd1c5276
commit b0ed4265eb
7 changed files with 69 additions and 76 deletions

View File

@@ -50,8 +50,7 @@ export class Route {
this.onUpdate(newValue);
return;
}
for (let i = 0; i < keys1.length; i++) {
const key = keys1[i];
for (const key of keys1) {
if (newValue[key] !== oldValue[key]) {
this.onUpdate(newValue);
return;