worked on GarageApp stuff
This commit is contained in:
parent
60aaf17af3
commit
eb606572b0
51919 changed files with 2168177 additions and 18 deletions
8
node_modules/@emotion/memoize/src/index.ts
generated
vendored
Normal file
8
node_modules/@emotion/memoize/src/index.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
export default function memoize<V>(fn: (arg: string) => V): (arg: string) => V {
|
||||
const cache: Record<string, V> = Object.create(null)
|
||||
|
||||
return (arg: string) => {
|
||||
if (cache[arg] === undefined) cache[arg] = fn(arg)
|
||||
return cache[arg]
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue