mirror of
https://github.com/rjNemo/functional-programming-jargon
synced 2026-06-06 02:26:43 +00:00
redundant semicolon
This commit is contained in:
parent
ed61514c4c
commit
d8a5ab2349
1 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue