Skip to content

Commit d857ea9

Browse files
author
bsanches
committed
use method shorthand for comonad example
1 parent 6ce00b5 commit d857ea9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

readme.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -439,10 +439,10 @@ compose(foo, identity) ≍ compose(identity, foo) ≍ foo
439439
> An object that has `extract` and `extend` functions.
440440
441441
```js
442-
let CoIdentity = v => ({
442+
const CoIdentity = v => ({
443443
val: v,
444-
extract: function () { return this.val },
445-
extend: function (f) { return CoIdentity(f(this)) }
444+
extract() { return this.val },
445+
extend(f) { return CoIdentity(f(this)) }
446446
})
447447
```
448448

0 commit comments

Comments
 (0)