Blame view

天文台pc/tianwentai-ui/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js 202 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
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 };