UNPKG

one

Version:

One is a new React Framework that makes Vite serve both native and web.

11 lines (10 loc) 235 B
const w = /* @__PURE__ */new WeakMap(); const weakKey = item => { return w.get(item) ?? (() => { const k = `${Math.random()}`; w.set(item, k); return k; })(); }; export { weakKey }; //# sourceMappingURL=weakKey.mjs.map