MCPcopy Create free account
hub / github.com/ionic-team/ionic-framework / getBoolean

Method getBoolean

core/src/global/config.ts:17–26  ·  view source on GitHub ↗
(key: keyof IonicConfig, fallback = false)

Source from the content-addressed store, hash-verified

15 }
16
17 getBoolean(key: keyof IonicConfig, fallback = false): boolean {
18 const val = this.m.get(key);
19 if (val === undefined) {
20 return fallback;
21 }
22 if (typeof val === 'string') {
23 return val === 'true';
24 }
25 return !!val;
26 }
27
28 getNumber(key: keyof IonicConfig, fallback?: number): number {
29 const val = parseFloat(this.m.get(key));

Callers 15

renderMethod · 0.45
DatetimeClass · 0.45
transitionMethod · 0.45
loadAnimationMethod · 0.45
renderMethod · 0.45
componentDidLoadMethod · 0.45
renderMethod · 0.45
renderMethod · 0.45
componentWillLoadMethod · 0.45
transitionMethod · 0.45
renderMethod · 0.45
overlayAnimationFunction · 0.45

Calls 1

getMethod · 0.65

Tested by

no test coverage detected