mirror of
https://github.com/rjNemo/functional-programming-jargon
synced 2026-06-11 04:56:40 +00:00
fix: arrow function in setoid
This commit is contained in:
parent
4ff65ed282
commit
50b46665ff
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