(fn)
| 48 | |
| 49 | // src/memo.ts |
| 50 | var memo = (fn) => { |
| 51 | const cache = /* @__PURE__ */ new Map(); |
| 52 | const get = (...args) => { |
| 53 | const key = JSON.stringify(args); |
| 54 | if (cache.has(key)) { |
| 55 | return cache.get(key); |
| 56 | } |
| 57 | const result = fn(...args); |
| 58 | cache.set(key, result); |
| 59 | return result; |
| 60 | }; |
| 61 | return get; |
| 62 | }; |
| 63 | |
| 64 | // src/merge-props.ts |
| 65 | var MERGE_OMIT = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]); |
no outgoing calls
no test coverage detected