score:1

Accepted answer
let tabIndex = tab.findIndex(element => element.index === index); 

Related Query

More Query from same tag