MCPcopy
hub / github.com/ionic-team/ionic-framework / find

Function find

core/src/utils/menu-controller/index.ts:212–218  ·  view source on GitHub ↗
(predicate: (menu: MenuI) => boolean)

Source from the content-addressed store, hash-verified

210 };
211
212 const find = (predicate: (menu: MenuI) => boolean): HTMLIonMenuElement | undefined => {
213 const instance = menus.find(predicate);
214 if (instance !== undefined) {
215 return instance.el;
216 }
217 return undefined;
218 };
219
220 const waitUntilReady = () => {
221 return Promise.all(

Callers 2

getFunction · 0.85
_getOpenSyncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected