Standardize and fix equality strictness in Setoid (#66)

This commit is contained in:
David Zukowski 2016-07-26 01:40:31 -04:00 committed by hemanth.hm
parent a033852fca
commit 31544b98f6

View file

@ -471,11 +471,11 @@ Make array a setoid:
```js
Array.prototype.equals = (arr) => {
var len = this.length
if (len != arr.length) {
if (len !== arr.length) {
return false
}
for (var i = 0; i < len; i++) {
if (this[i] !=== arr[i]) {
if (this[i] !== arr[i]) {
return false
}
}