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

@ -493,8 +493,8 @@ export class Datetime {
col = pickerColumns[i];
columnsWidth.push(0);
for (let j = 0; j < col.options.length; j++) {
width = col.options[j].text!.length;
for (const option of col.options) {
width = option.text!.length;
if (width > columnsWidth[i]) {
columnsWidth[i] = width;
}