JSR?
This commit is contained in:
25 files changed
+186
-94
No files matched your search
@@ -69,11 +69,11 @@ export class Memo<A extends unknown[], R extends unknown> {
|
||||
return result
|
||||
}
|
||||
|
||||
get ratio() {
|
||||
get ratio(): number {
|
||||
return this.hits / (this.hits + this.misses)
|
||||
}
|
||||
|
||||
get fn() {
|
||||
get fn(): (...args: A) => R {
|
||||
return this.#memoHandler.bind(this)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user