let x = this.currentList.filter((x) => x.Tab == this.currentTab)[0].TabSequence;
I want to add ?(validation) operator on filter result if I get empty result. Please find below. How I can handle if result is empty array then [0].TabSequence
let x = this.currentList.filter((x) => x.Tab == this.currentTab)?[0].TabSequence;