Skip to content

Commit 5b282a8

Browse files
committed
Update Poly.ts
1 parent 44b1e15 commit 5b282a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

basic-calculator-iv/Poly.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export class Poly extends Map<string[], number> {
8484
): void {
8585
this.#map.forEach((v, k, _m) => {
8686
const key = this.#keys.get(k) ?? JSON.parse(k);
87-
callbackfn(v, key, this);
87+
callbackfn.call(thisArg,v, key, this);
8888
}, thisArg);
8989
}
9090
values(): IterableIterator<number> {

0 commit comments

Comments
 (0)