UNPKG

alinea

Version:
21 lines (19 loc) 414 B
import "../../chunks/chunk-NZLE2WMY.js"; // src/core/util/Lazy.ts var Lazy; ((Lazy2) => { const memo = /* @__PURE__ */ new WeakMap(); function get(lazy) { if (typeof lazy === "function") { if (memo.has(lazy)) return memo.get(lazy); const value = lazy(); memo.set(lazy, value); return value; } return lazy; } Lazy2.get = get; })(Lazy || (Lazy = {})); export { Lazy };