Gazebo_simulation-Frontend/node_modules/.cache/babel-loader/4a8015f26c5417e38b27eac630e1b689.json

1 line
455 B
JSON
Raw Normal View History

2020-12-21 11:29:31 -04:00
{"ast":null,"code":"var weakMemoize = function weakMemoize(func) {\n // $FlowFixMe flow doesn't include all non-primitive types as allowed for weakmaps\n var cache = new WeakMap();\n return function (arg) {\n if (cache.has(arg)) {\n // $FlowFixMe\n return cache.get(arg);\n }\n\n var ret = func(arg);\n cache.set(arg, ret);\n return ret;\n };\n};\n\nexport default weakMemoize;","map":null,"metadata":{},"sourceType":"module"}