(tabs: HTMLIonTabElement[], tab: string | HTMLIonTabElement)
| 230 | } |
| 231 | |
| 232 | const getTab = (tabs: HTMLIonTabElement[], tab: string | HTMLIonTabElement): HTMLIonTabElement | undefined => { |
| 233 | const tabEl = typeof tab === 'string' ? tabs.find((t) => t.tab === tab) : tab; |
| 234 | |
| 235 | if (!tabEl) { |
| 236 | printIonError(`[ion-tabs] - Tab with id: "${tabEl}" does not exist`); |
| 237 | } |
| 238 | return tabEl; |
| 239 | }; |
no test coverage detected