Skip to content

Commit

Permalink
docs(readme): improved naming in README examples
Browse files Browse the repository at this point in the history
  • Loading branch information
grantila committed May 26, 2020
1 parent 780f02f commit bcc7536
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ The library is also exported as an *ES module*, if imported in platforms (and bu

* For `P` (being `Promise< E >`), it returns `P`
* E.g. `Promise< string >``Promise< string >`
* For non-promise `P`, it returns `Promise< P >`
* For non-promise `E`, it returns `Promise< E >`
* E.g. `string``Promise< string >`


Expand All @@ -85,7 +85,7 @@ The library is also exported as an *ES module*, if imported in platforms (and bu

* For `P` (being `Promise< E >`), it returns `E`
* E.g. `Promise< string >``string`
* For non-promise `P`, it returns `P`
* For non-promise `E`, it returns `E`
* E.g. `string``string`

## EnsurePromise
Expand Down Expand Up @@ -202,7 +202,7 @@ By default, the values will be filtered as fast as possible, but sometimes it is
import { filter } from 'already'

somePromiseToAnArrayOfPromisesAndValues
.then( filter( { concurrency: 4 }, item => item.shouldBeIncluded ) )
.then( filter( { concurrency: 4 }, item => item.shouldBeIncluded( ) ) )
```

### filter without a promise chain
Expand Down Expand Up @@ -236,7 +236,7 @@ Like with `filter`, `map` allows a custom concurrency.
import { map } from 'already'

somePromiseToAnArrayOfPromisesAndValues
.then( map( { concurrency: 4 }, item => JSON.stringify( item ) ) )
.then( map( { concurrency: 4 }, item => queryDB( item ) ) )
```

### map without a promise chain
Expand Down

0 comments on commit bcc7536

Please sign in to comment.