All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.esm.utils.memo.js Maven / Gradle / Ivy

Go to download

Responsive and accessible React UI components built with React and Emotion

The newest version!
"use strict";
const memo = (fn) => {
  const cache = /* @__PURE__ */ Object.create(null);
  function get(...args) {
    const key = JSON.stringify(args);
    if (cache[key] === void 0) cache[key] = fn(...args);
    return cache[key];
  }
  return get;
};

export { memo };




© 2015 - 2025 Weber Informatics LLC | Privacy Policy