We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87416da commit 3dc786cCopy full SHA for 3dc786c
examples/HashMapExample.html
@@ -15,10 +15,10 @@
15
}
16
hashCode(){
17
const prime = 31;
18
- let result = 1;
19
- result = prime * result + this.x;
20
- result = prime * result + this.y;
21
- return result;
+ let result = 1;
+ result = prime * result + this.x;
+ result = prime * result + this.y;
+ return result;
22
23
equals(obj){
24
return obj instanceof Point && obj.x === this.x && obj.y === this.y;
0 commit comments