How can an argument increment without being explicitly told to do so?

Viewed 53

In the following function why does "i" argument increment?

function colWidths(rows) {
      return rows[0].map(function(_, i) {
        return rows.reduce(function(max, row) {
          return Math.max(max, row[i].minWidth());
        }, 0);
      });
    }
1 Answers
Related