Skip to content

Commit

Permalink
redundant semicolon
Browse files Browse the repository at this point in the history
  • Loading branch information
trueproof authored and jethrolarson committed Jul 9, 2017
1 parent ed61514 commit d8a5ab2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readme.md
Expand Up @@ -583,10 +583,10 @@ Array.prototype.chain = function (f) {
}

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

// Contrast to map
;Array.of('cat,dog', 'fish,bird').map((a) => a.split(',')) // [['cat', 'dog'], ['fish', 'bird']]
Array.of('cat,dog', 'fish,bird').map((a) => a.split(',')) // [['cat', 'dog'], ['fish', 'bird']]
```

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

0 comments on commit d8a5ab2

Please sign in to comment.