https://i.sstatic.net/O7lKv.pngHaving an issue with removing an item from an array object based on a specific property. Let me explain.
delColumn($event: any, el: any) {
if ($event.target && el > -1) {
var colId: string = this.receivedData[0].value.columns[el].id;
var obj = this.receivedData[0];
obj.values.columns = obj.values.columns.filter(s => s.id != colId);
obj.values.rows.forEach(s => {
delete s.Col_1;
return s;
});
}
}
My goal is to remove a specific column and its associated rows when the Delete Column action is triggered by clicking.
Appreciate the assistance in advance.