UNPKG

one

Version:

One is a React framework for web, iOS, and Android apps.

12 lines (10 loc) • 231 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