let RowData: PricingOrder[] | Notification[] | ActionLog[] | string[];
Assuming that RowData
can also be of type string[]
(
For example, RowData = ['apple','banana','cherry'];
)
if(typeof RowData === 'string[]'){
//perform operations specific to string arrays
} else {
//perform operations specific to custom class arrays
}