I want to get the id of all the tabs added to the tab bar

I want to get the id of all the tabs added to the tab bar.

If I use
[tabbar.getId(i)[,
I can only get one.

So I tried outputting it as
[for(let i for tabbar) {
console.log(tabbar.getId(i)
}] and I got an error.
What code should I use?

I use the following to iterate through each tab looking for a match. The code below will display each id and then find a match.

tabbar.forEach(function(tab){
	console.log("display tab.config.id forEach: ", tab.config.id);
	if(selected.uid == tab.config.id) {
		console.log("match if found: ", tab.config.id);
	}
});
1 Like