My code involved creating an array called dataArray of type dataRows, which is an interface.
dataArray: Array<dataRows>;
In a function, I attempted to push a dataRows object into the array like this:
this.dataArray.push(row)
But for some reason, I am seeing 'Cannot read property 'push' of undefined' in the console. Any ideas on why this might be happening?