Update index.js

This commit is contained in:
Anton Medvedev 2023-04-10 21:29:14 +02:00
parent cd1803c9b9
commit 0833d11919
No known key found for this signature in database

View File

@ -49,8 +49,8 @@ echo `{"name": "world"}` | fx 'Object.keys'
## Advanced Usage
Fx has a shortcut for the map function. Fox example `this.map(x => x.commit.message)`
can be written without leading dot and without `x => x` parts.
Fx has a shortcut for the map function. Fox example, `this.map(x => x.commit.message)`
can be rewritten without leading dot and without `x => x` parts.
```sh
curl https://api.github.com/repos/antonmedv/fx/commits | fx 'map(.commit.message)'