mirror of
https://github.com/rjNemo/functional-programming-jargon
synced 2026-06-11 13:06:42 +00:00
Merge pull request #140 from shfshanyue/master
fix: arrow function in setoid
This commit is contained in:
commit
f279ee6490
1 changed files with 1 additions and 1 deletions
|
|
@ -675,7 +675,7 @@ An object that has an `equals` function which can be used to compare other objec
|
||||||
Make array a setoid:
|
Make array a setoid:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
Array.prototype.equals = (arr) => {
|
Array.prototype.equals = function (arr) {
|
||||||
const len = this.length
|
const len = this.length
|
||||||
if (len !== arr.length) {
|
if (len !== arr.length) {
|
||||||
return false
|
return false
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue