Function
getString
(key: string, defaultValue?: string)
Source from the content-addressed store, hash-verified
| 25 | } |
| 26 | |
| 27 | export function getString(key: string, defaultValue?: string): string { |
| 28 | if (!Common.checkKey(key)) { |
| 29 | return; |
| 30 | } |
| 31 | if (hasKey(key)) { |
| 32 | return userDefaults.stringForKey(key); |
| 33 | } |
| 34 | |
| 35 | return defaultValue; |
| 36 | } |
| 37 | |
| 38 | export function getNumber(key: string, defaultValue?: number): number { |
| 39 | if (!Common.checkKey(key)) { |
Callers
nothing calls this directly
Tested by
no test coverage detected