mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-25 09:55:15 +00:00
1 line
871 B
JSON
1 line
871 B
JSON
{"ast":null,"code":"export default function memoize(fn) {\n var cache = {};\n return function (arg) {\n if (cache[arg] === undefined) {\n cache[arg] = fn(arg);\n }\n\n return cache[arg];\n };\n}","map":{"version":3,"sources":["/app/node_modules/@material-ui/system/esm/memoize.js"],"names":["memoize","fn","cache","arg","undefined"],"mappings":"AAAA,eAAe,SAASA,OAAT,CAAiBC,EAAjB,EAAqB;AAClC,MAAIC,KAAK,GAAG,EAAZ;AACA,SAAO,UAAUC,GAAV,EAAe;AACpB,QAAID,KAAK,CAACC,GAAD,CAAL,KAAeC,SAAnB,EAA8B;AAC5BF,MAAAA,KAAK,CAACC,GAAD,CAAL,GAAaF,EAAE,CAACE,GAAD,CAAf;AACD;;AAED,WAAOD,KAAK,CAACC,GAAD,CAAZ;AACD,GAND;AAOD","sourcesContent":["export default function memoize(fn) {\n var cache = {};\n return function (arg) {\n if (cache[arg] === undefined) {\n cache[arg] = fn(arg);\n }\n\n return cache[arg];\n };\n}"]},"metadata":{},"sourceType":"module"} |