MCPcopy Create free account
hub / github.com/epicweb-dev/remember / getValue

Function getValue

index.test.ts:13–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11 const rose = Symbol('rose')
12 let returnValue = rose
13 const getValue = () => returnValue
14 expect(remember('what is in a name', getValue)).toBe(rose)
15 returnValue = Symbol('bud')
16 // because the name and getValue did not change, the value is remembered

Callers 1

rememberFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected