tracks/ecmascript/exercises/saddle-points/example.js in trackler-2.1.0.25 vs tracks/ecmascript/exercises/saddle-points/example.js in trackler-2.1.0.26
- old
+ new
@@ -11,10 +11,10 @@
export default class Matrix {
constructor(data) {
this.rows = [];
this.columns = [];
- data.split(/\n/).map((row, ii) => {
+ data.split(/\n/).map((row) => {
this.rows.push(row.trim().split(/\s/).map((cell, jj) => {
this.columns[jj] ? this.columns[jj].push(+cell) : this.columns[jj] = [+cell];
return +cell;
}));
});