Skip to content

Commit d8a5ab2

Browse files
trueproofjethrolarson
authored andcommitted
redundant semicolon
1 parent ed61514 commit d8a5ab2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -583,10 +583,10 @@ Array.prototype.chain = function (f) {
583583
}
584584

585585
// Usage
586-
;Array.of('cat,dog', 'fish,bird').chain((a) => a.split(',')) // ['cat', 'dog', 'fish', 'bird']
586+
Array.of('cat,dog', 'fish,bird').chain((a) => a.split(',')) // ['cat', 'dog', 'fish', 'bird']
587587

588588
// Contrast to map
589-
;Array.of('cat,dog', 'fish,bird').map((a) => a.split(',')) // [['cat', 'dog'], ['fish', 'bird']]
589+
Array.of('cat,dog', 'fish,bird').map((a) => a.split(',')) // [['cat', 'dog'], ['fish', 'bird']]
590590
```
591591

592592
`of` is also known as `return` in other functional languages.

0 commit comments

Comments
 (0)