MCPcopy Create free account
hub / github.com/UI5/webcomponents / _walk

Function _walk

packages/main/src/TabContainer.ts:1552–1559  ·  view source on GitHub ↗
(items: Array<ITab>, callback: (arg0: ITab, arg1: number) => void, level: number)

Source from the content-addressed store, hash-verified

1550};
1551
1552const _walk = (items: Array<ITab>, callback: (arg0: ITab, arg1: number) => void, level: number) => {
1553 [...items].forEach(item => {
1554 callback(item, level);
1555 if (item.hasAttribute("ui5-tab") && item.items) {
1556 _walk(item.items, callback, level + 1);
1557 }
1558 });
1559};
1560
1561const walk = (items: Array<ITab>, callback: (arg0: ITab, arg1: number) => void) => {
1562 _walk(items, callback, 0);

Callers 1

walkFunction · 0.85

Calls 2

callbackFunction · 0.85
hasAttributeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…