mirror of
https://github.com/rjNemo/functional-programming-jargon
synced 2026-06-06 02:26:43 +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:
|
||||
|
||||
```js
|
||||
Array.prototype.equals = (arr) => {
|
||||
Array.prototype.equals = function (arr) {
|
||||
const len = this.length
|
||||
if (len !== arr.length) {
|
||||
return false
|
||||
|
|
|
|||
Loading…
Reference in a new issue