(key, fallback = null)
| 3 | }; |
| 4 | |
| 5 | const load = (key, fallback = null) => { |
| 6 | const raw = localStorage.getItem(key); |
| 7 | if (raw === null) return fallback; |
| 8 | try { |
| 9 | return JSON.parse(raw); |
| 10 | } catch { |
| 11 | return fallback; |
| 12 | } |
| 13 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected