(store)
| 2 | |
| 3 | /* JSON-array of keys (not CSV) so keys containing commas survive the round-trip. Python parses with `json.loads`. */ |
| 4 | const keysOf = (store) => JSON.stringify(Array.from({ length: store.length }, (_, i) => store.key(i))); |
| 5 | |
| 6 | export default () => ({ |
| 7 | local_get: (key) => localStorage.getItem(key), |