const t = {}, n = () => ({
  get length() {
    return Object.keys(t).length;
  },
  key(e) {
    return Object.keys(t)[e] ?? null;
  },
  getItem(e) {
    return t[e] ?? null;
  },
  setItem(e, r) {
    t[e] = r;
  },
  removeItem(e) {
    delete t[e];
  },
  clear() {
    Object.keys(t).forEach((e) => {
      delete t[e];
    });
  }
});
export {
  n as u
};
