Sorry, I am new to Office Scripts but have asked ChatGPT, Bing Chat and done lots of Google searches without much luck. I thought it should be something very simple for Microsoft to provide. I must have missed something very crucial or it is a bug in Office Script or Microsoft just tried to make it super hard to use this filtering feature.
Problem: Access the filtered range of a Table from Office Script (see image attachment)

table1.getRange() => is there a way to captured the filtered range of a Table?
Of course, I can solve it by simply looping through all the records and manually filtering the records. However, it is very inefficient to do it this way as I am dealing with a large number of records and multiple loops.
I was hoping there was a solution to allow me to filter out several columns in a table and retrieve the filtered rows easily from Office Scripts.
loopthrough the array to retrieve the values of col c1 and c2. No ?