C:\Users\MSI\Desktop\frontend\coresync-react

This commit is contained in:
yarik committed 2025-08-05 00:16:33 +03:00
commit d8dad2312a
8617 files changed
+1017114

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
// @flow
export default function memoize<V>(fn: string => V): string => V {
const cache = {}
return (arg: string) => {
if (cache[arg] === undefined) cache[arg] = fn(arg)
return cache[arg]
}
}