MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / getNumber

Method getNumber

core/src/global/config.ts:28–31  ·  view source on GitHub ↗
(key: keyof IonicConfig, fallback?: number)

Source from the content-addressed store, hash-verified

26 }
27
28 getNumber(key: keyof IonicConfig, fallback?: number): number {
29 const val = parseFloat(this.m.get(key));
30 return isNaN(val) ? (fallback !== undefined ? fallback : NaN) : val;
31 }
32
33 set(key: keyof IonicConfig, value: any) {
34 this.m.set(key, value);

Callers 3

ToastClass · 0.45
startInputShimsFunction · 0.45

Calls 1

getMethod · 0.65

Tested by

no test coverage detected