MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / getNumber

Function getNumber

packages/core/application-settings/index.ios.ts:38–47  ·  view source on GitHub ↗
(key: string, defaultValue?: number)

Source from the content-addressed store, hash-verified

36}
37
38export function getNumber(key: string, defaultValue?: number): number {
39 if (!Common.checkKey(key)) {
40 return;
41 }
42 if (hasKey(key)) {
43 return userDefaults.doubleForKey(key);
44 }
45
46 return defaultValue;
47}
48
49// setters
50export function setBoolean(key: string, value: boolean): void {

Callers

nothing calls this directly

Calls 1

hasKeyFunction · 0.70

Tested by

no test coverage detected