When storing a value with an empty key, it is persisted as "---.EMPTY_STRING.---". When iterating through the keys using .length and .key(i), a key with name "---.EMPTY_STRING.---" is returned instead of "".
let localStorage = new LocalStorage("./scratch"); localStorage.setItem("", "my value"); let key = localStorage.key(0); // "---.EMPTY_STRING.---"
When storing a value with an empty key, it is persisted as "---.EMPTY_STRING.---". When iterating through the keys using .length and .key(i), a key with name "---.EMPTY_STRING.---" is returned instead of "".
let localStorage = new LocalStorage("./scratch"); localStorage.setItem("", "my value"); let key = localStorage.key(0); // "---.EMPTY_STRING.---"