I have this object:
public obj: any = { row1: [], row2: [], total: [], sumTotal: 0, count: 0 }; How can i create n empty arrays ?
Im trying something like this but its not working:
if (this.i === 0) { this.obj.row['_' + this.row] = new Array(); } Any suggestion?