@jwal485 It could have been done this other way where you’re simply checking for the existence of the property (of any type) in the array row. The fields test2 and test3 can be a number, text, or other types. If there hasn’t been a value entered in the collection for a given field (property in the array) for any record (the array row), it will fail this visible test and the column will be hidden.
let visible2 = false;
let visible3 = false;
rows.forEach((row) => {
if (row.test2){
visible2 = true;
}
if (row.test3){
visible3 = true;
}
})
console.log(visible2);
console.log(visible3);