From b640ebae8a04c5a73422695c8762de7bba428422 Mon Sep 17 00:00:00 2001 From: Wojciech Maj Date: Thu, 19 Nov 2020 08:34:21 +0100 Subject: [PATCH] Remove unnecessary arguments in examples --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b799a22..af1272a 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ Tests whether all elements in the array pass the test implemented by the provide ```js import { asyncEvery } from '@wojtekmaj/async-array-utils'; -const largerThanZero = await asyncEvery([1, 2, 3], async (el, index) => el > 0); // true +const largerThanZero = await asyncEvery([1, 2, 3], async (el) => el > 0); // true ``` ### `asyncForEach()` @@ -84,7 +84,7 @@ Note: For optimization purposes, all iterations are ran concurrently. If you rel ```js import { asyncMap } from '@wojtekmaj/async-array-utils'; -const asyncMappedArr = await asyncMap([1, 2, 3], async (el, index) => el * 2); // [2, 4, 6] +const asyncMappedArr = await asyncMap([1, 2, 3], async (el) => el * 2); // [2, 4, 6] ``` ### `asyncMapStrict()` @@ -134,7 +134,7 @@ Note: For optimization purposes, all iterations are ran concurrently. If you rel ```js import { asyncSome } from '@wojtekmaj/async-array-utils'; -const largerThanZero = await asyncSome([1, 2, 3], async (el, index) => el > 0); // true +const largerThanZero = await asyncSome([1, 2, 3], async (el) => el > 0); // true ``` ### `asyncSomeStrict()` -- 2.51.2