Files
coopgo/node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js
sgauthier 6e64e138e2
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s
planning
2024-10-14 09:15:30 +02:00

14 lines
280 B
JavaScript

'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function memoize(fn) {
var cache = Object.create(null);
return function (arg) {
if (cache[arg] === undefined) cache[arg] = fn(arg);
return cache[arg];
};
}
exports["default"] = memoize;