Security upgrades
This commit is contained in:
10
node_modules/@material-ui/system/esm/memoize.js
generated
vendored
Normal file
10
node_modules/@material-ui/system/esm/memoize.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
export default function memoize(fn) {
|
||||
var cache = {};
|
||||
return function (arg) {
|
||||
if (cache[arg] === undefined) {
|
||||
cache[arg] = fn(arg);
|
||||
}
|
||||
|
||||
return cache[arg];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user