one
Version:
One is a new React Framework that makes Vite serve both native and web.
12 lines (11 loc) • 310 B
JavaScript
var w = /* @__PURE__ */new WeakMap();
var weakKey = function (item) {
var _w_get;
return (_w_get = w.get(item)) !== null && _w_get !== void 0 ? _w_get : function () {
var k = `${Math.random()}`;
w.set(item, k);
return k;
}();
};
export { weakKey };
//# sourceMappingURL=weakKey.native.js.map