You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: readme.md
+7-8
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,8 @@ Useful when you need to run promise-returning & async functions multiple times w
6
6
7
7
## Install
8
8
9
-
```
10
-
$ npm install p-filter
9
+
```sh
10
+
npm install p-filter
11
11
```
12
12
13
13
## Usage
@@ -42,7 +42,7 @@ Returns a `Promise` that is fulfilled when all promises in `input` and ones retu
42
42
43
43
#### input
44
44
45
-
Type: `Iterable<Promise|any>`
45
+
Type: `Iterable<Promise<unknown> | unknown>`
46
46
47
47
Iterated over concurrently in the `filterer` function.
48
48
@@ -70,7 +70,6 @@ The number of concurrently pending promises returned by `filterer`.
70
70
71
71
Returns an async iterable that iterates over the promises in `iterable` and ones returned from `filterer` concurrently, calling `filterer` for each element.
72
72
73
-
#### Usage
74
73
```js
75
74
import {pFilterIterable} from'p-filter';
76
75
importgetWeatherfrom'get-weather'; // Not a real module
0 commit comments