Spaces:
Sleeping
Sleeping
Download frontend/node_modules/@mui/system/modern/memoize.js from sepidnes/pythonic-rag-FastAPIReact: direct link, hf CLI and curl.
- Browser
- Download file 175 Bytes
-
https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/c9f908872ebbec3c4fa1392419c0f6cd3750ddb3/frontend/node_modules/%40mui/system/modern/memoize.js
- Command line
-
hf download hf://spaces/sepidnes/pythonic-rag-FastAPIReact@c9f908872ebbec3c4fa1392419c0f6cd3750ddb3/frontend/node_modules/@mui/system/modern/memoize.js
-
curl -L -o memoize.js https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/c9f908872ebbec3c4fa1392419c0f6cd3750ddb3/frontend/node_modules/%40mui/system/modern/memoize.js
175 Bytes
| export default function memoize(fn) { | |
| const cache = {}; | |
| return arg => { | |
| if (cache[arg] === undefined) { | |
| cache[arg] = fn(arg); | |
| } | |
| return cache[arg]; | |
| }; | |
| } |