1 | {"version":3,"sources":["../../src/util/unaryMemoize.js"],"names":["memoize","fn","cache","Map","x","has","get","set"],"mappings":"AAAA,MAAMA,OAAO,GAAGC,EAAE,IAAI;AAClB,QAAMC,KAAK,GAAG,IAAIC,GAAJ,EAAd;AAEA,SAAOC,CAAC,IAAKF,KAAK,CAACG,GAAN,CAAUD,CAAV,IAAeF,KAAK,CAACI,GAAN,CAAUF,CAAV,CAAf,GAA8BF,KAAK,CAACK,GAAN,CAAUH,CAAV,EAAaH,EAAE,CAACG,CAAD,CAAf,EAAoBE,GAApB,CAAwBF,CAAxB,CAA3C;AACH,CAJD;;AAMA,eAAeJ,OAAf","sourcesContent":["const memoize = fn => {\n const cache = new Map();\n\n return x => (cache.has(x) ? cache.get(x) : cache.set(x, fn(x)).get(x));\n};\n\nexport default memoize;\n"],"file":"unaryMemoize.js"} |