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

Function hasKey

packages/core/application-settings/index.android.ts:19–25  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

17}
18
19export function hasKey(key: string): boolean {
20 if (!verify(key)) {
21 return;
22 }
23
24 return sharedPreferences.contains(key);
25}
26
27// getters
28export function getBoolean(key: string, defaultValue?: boolean): boolean {

Callers 3

getBooleanFunction · 0.70
getStringFunction · 0.70
getNumberFunction · 0.70

Calls 2

verifyFunction · 0.85
containsMethod · 0.80

Tested by

no test coverage detected