9.0 Released! → Native ESM runtimes 🚀, Vite support ⚡️, multi-window apps and more...
Read Announcement
ts
function getNumber(key: string, defaultValue?: number): number;

Defined in: application-settings/index.d.ts:26

Gets a value (if existing) for a key as a Number Object. A default value can be provided in case there is no existing value.

Parameters ​

ParameterTypeDescription
keystringThe key to check for.
defaultValue?numberAn optional value to be returned in case there is no existing value.

Returns ​

number

Previous
getBoolean