init
This commit is contained in:
9
mc_test/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
generated
vendored
Executable file
9
mc_test/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
generated
vendored
Executable file
@ -0,0 +1,9 @@
|
||||
function memoize(fn) {
|
||||
var cache = Object.create(null);
|
||||
return function (arg) {
|
||||
if (cache[arg] === undefined) cache[arg] = fn(arg);
|
||||
return cache[arg];
|
||||
};
|
||||
}
|
||||
|
||||
export { memoize as default };
|
||||
Reference in New Issue
Block a user