MCPcopy
hub / github.com/reactjs/react-tabs / getTabsCount

Function getTabsCount

src/helpers/count.js:4–11  ·  view source on GitHub ↗
(children)

Source from the content-addressed store, hash-verified

2import { isTab } from './elementTypes';
3
4export function getTabsCount(children) {
5 let tabCount = 0;
6 deepForEach(children, (child) => {
7 if (isTab(child)) tabCount++;
8 });
9
10 return tabCount;
11}

Callers 7

setSelectedFunction · 0.90
getNextTabFunction · 0.90
getPrevTabFunction · 0.90
getFirstTabFunction · 0.90
getLastTabFunction · 0.90
getChildrenFunction · 0.90
TabsFunction · 0.90

Calls 1

deepForEachFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…