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
+46-58Lines changed: 46 additions & 58 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,31 +1,33 @@
1
1
[](https://www.npmjs.com/package/@wojtekmaj/async-array-utils)[](https://github.com/wojtekmaj/async-array-utils/actions)[](https://github.com/facebook/jest)
2
2
3
3
# Async-Array-Utils
4
+
4
5
A collection of array-related async utilities.
5
6
6
7
## tl;dr
7
-
* Install by executing `npm install @wojtekmaj/async-array-utils` or `yarn add @wojtekmaj/async-array-utils`.
8
-
* Import by adding `import * as asyncArrayUtils from '@wojtekmaj/async-array-utils'`.
9
-
* Do stuff with it!
10
-
```js
11
-
constasyncMappedArr=awaitasyncMap([1, 2, 3], async (x) => x *2);
12
-
```
8
+
9
+
- Install by executing `npm install @wojtekmaj/async-array-utils` or `yarn add @wojtekmaj/async-array-utils`.
10
+
- Import by adding `import * as asyncArrayUtils from '@wojtekmaj/async-array-utils'`.
11
+
- Do stuff with it!
12
+
```js
13
+
constasyncMappedArr=awaitasyncMap([1, 2, 3], async (x) => x *2);
14
+
```
13
15
14
16
## User guide
15
17
16
18
### Table of contents
17
19
18
-
* [`asyncEvery()`](#asyncEvery)
19
-
* [`asyncEveryStrict()`](#asyncEveryStrict)
20
-
* [`asyncFilter()`](#asyncFilter)
21
-
* [`asyncFilterStrict()`](#asyncFilterStrict)
22
-
* [`asyncForEach()`](#asyncForEach)
23
-
* [`asyncForEachStrict()`](#asyncForEachStrict)
24
-
* [`asyncMap()`](#asyncMap)
25
-
* [`asyncMapStrict()`](#asyncMapStrict)
26
-
* [`asyncReduce()`](#asyncReduce)
27
-
* [`asyncSome()`](#asyncSome)
28
-
* [`asyncSomeStrict()`](#asyncSomeStrict)
20
+
-[`asyncEvery()`](#asyncEvery)
21
+
-[`asyncEveryStrict()`](#asyncEveryStrict)
22
+
-[`asyncFilter()`](#asyncFilter)
23
+
-[`asyncFilterStrict()`](#asyncFilterStrict)
24
+
-[`asyncForEach()`](#asyncForEach)
25
+
-[`asyncForEachStrict()`](#asyncForEachStrict)
26
+
-[`asyncMap()`](#asyncMap)
27
+
-[`asyncMapStrict()`](#asyncMapStrict)
28
+
-[`asyncReduce()`](#asyncReduce)
29
+
-[`asyncSome()`](#asyncSome)
30
+
-[`asyncSomeStrict()`](#asyncSomeStrict)
29
31
30
32
### `asyncEvery()`
31
33
@@ -51,13 +53,10 @@ Like `asyncEvery()`, but runs iterations non-concurrently.
0 commit comments