Gazebo_simulation-Frontend/node_modules/.cache/babel-loader/4a8015f26c5417e38b27eac630e1b689.json
2020-12-22 09:59:14 -05:00

1 line
455 B
JSON

{"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"}