Skip to content

Commit 31544b9

Browse files
David Zukowskihemanth
authored andcommitted
Standardize and fix equality strictness in Setoid (#66)
1 parent a033852 commit 31544b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,11 +471,11 @@ Make array a setoid:
471471
```js
472472
Array.prototype.equals = (arr) => {
473473
var len = this.length
474-
if (len != arr.length) {
474+
if (len !== arr.length) {
475475
return false
476476
}
477477
for (var i = 0; i < len; i++) {
478-
if (this[i] !=== arr[i]) {
478+
if (this[i] !== arr[i]) {
479479
return false
480480
}
481481
}

0 commit comments

Comments
 (0)