Skip to content

Commit b640eba

Browse files
committed
Remove unnecessary arguments in examples
1 parent db415c3 commit b640eba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Tests whether all elements in the array pass the test implemented by the provide
3333
```js
3434
import { asyncEvery } from '@wojtekmaj/async-array-utils';
3535

36-
const largerThanZero = await asyncEvery([1, 2, 3], async (el, index) => el > 0); // true
36+
const largerThanZero = await asyncEvery([1, 2, 3], async (el) => el > 0); // true
3737
```
3838

3939
### `asyncForEach()`
@@ -84,7 +84,7 @@ Note: For optimization purposes, all iterations are ran concurrently. If you rel
8484
```js
8585
import { asyncMap } from '@wojtekmaj/async-array-utils';
8686

87-
const asyncMappedArr = await asyncMap([1, 2, 3], async (el, index) => el * 2); // [2, 4, 6]
87+
const asyncMappedArr = await asyncMap([1, 2, 3], async (el) => el * 2); // [2, 4, 6]
8888
```
8989

9090
### `asyncMapStrict()`
@@ -134,7 +134,7 @@ Note: For optimization purposes, all iterations are ran concurrently. If you rel
134134
```js
135135
import { asyncSome } from '@wojtekmaj/async-array-utils';
136136

137-
const largerThanZero = await asyncSome([1, 2, 3], async (el, index) => el > 0); // true
137+
const largerThanZero = await asyncSome([1, 2, 3], async (el) => el > 0); // true
138138
```
139139

140140
### `asyncSomeStrict()`

0 commit comments

Comments
 (0)