redundant semicolon

This commit is contained in:
trueproof 2017-07-07 10:55:48 +03:00 committed by Jethro Larson
parent ed61514c4c
commit d8a5ab2349

View file

@ -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.