Raw:
<pre id="output"></pre>

Filtered:
<pre id="output2"></pre>
let fakelocalStorage = sessionStorage;
fakelocalStorage.setItem("test1", true);
fakelocalStorage.setItem("test2", false);
fakelocalStorage.setItem("test3", "I'm A Little Teapot");
fakelocalStorage.setItem("test4", "HTTP Status 418");
fakelocalStorage.setItem("test5", 1);
document.getElementById("output").innerHTML = Object.entries(
  fakelocalStorage
).toString();
document.getElementById("output2").innerHTML = Object.entries(fakelocalStorage)
  .filter((x) => x[1] == "true")
  .toString();
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.