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

Function isEnabled

core/src/utils/menu-controller/index.ts:69–75  ·  view source on GitHub ↗
(menu?: string | null)

Source from the content-addressed store, hash-verified

67 };
68
69 const isEnabled = async (menu?: string | null): Promise<boolean> => {
70 const menuEl = await get(menu);
71 if (menuEl) {
72 return !menuEl.disabled;
73 }
74 return false;
75 };
76
77 /**
78 * Finds and returns the menu specified by "menu" if registered.

Callers

nothing calls this directly

Calls 1

getFunction · 0.70

Tested by

no test coverage detected