UNPKG

@mui/system

Version:

MUI System is a set of CSS utilities to help you build custom designs more efficiently. It makes it possible to rapidly lay out custom designs.

15 lines (14 loc) 267 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = memoize; function memoize(fn) { const cache = {}; return arg => { if (cache[arg] === undefined) { cache[arg] = fn(arg); } return cache[arg]; }; }