From 85f365c5286474363e3b7ec3c7856703052a6727 Mon Sep 17 00:00:00 2001 From: Olivers Vitins Date: Tue, 12 Mar 2024 18:45:50 +0200 Subject: [PATCH] fix(functions): SplitIntoChunks => splitIntoChunks to comply with internal naming convention --- docs/README.md | 4 ++++ docs/modules.md | 18 +++++++++--------- src/functions/splitIntoChuks.ts | 2 +- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/docs/README.md b/docs/README.md index a17d61c..a360a34 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1 +1,5 @@ @resultium/utils / [Exports](modules.md) + +# @resultium/utils + +Utility package collecting various reusable functions used within Resultium projects diff --git a/docs/modules.md b/docs/modules.md index 997e3d6..1afcbe8 100644 --- a/docs/modules.md +++ b/docs/modules.md @@ -45,7 +45,7 @@ array of chunks #### Defined in -functions/splitIntoChuks.ts:8 +functions/splitIntoChuks.ts:27 ___ @@ -69,7 +69,7 @@ new string #### Defined in -functions/capitalizeFirstChar.ts:7 +functions/capitalizeFirstChar.ts:26 ___ @@ -93,7 +93,7 @@ new string #### Defined in -functions/classNames.ts:7 +functions/classNames.ts:26 ___ @@ -118,7 +118,7 @@ new string #### Defined in -functions/conditionalJoin.ts:8 +functions/conditionalJoin.ts:27 ___ @@ -147,7 +147,7 @@ uses JSON.stringify() #### Defined in -functions/isDeepWeakEqual.ts:10 +functions/isDeepWeakEqual.ts:29 ___ @@ -177,7 +177,7 @@ Returns only integers #### Defined in -functions/randomInRange.ts:12 +functions/randomInRange.ts:31 ___ @@ -212,7 +212,7 @@ This method doesn't support deep comparements. #### Defined in -functions/removeFromArrayByKeyValue.ts:11 +functions/removeFromArrayByKeyValue.ts:30 ___ @@ -243,7 +243,7 @@ new object #### Defined in -functions/removeObjectProperty.ts:9 +functions/removeObjectProperty.ts:27 ___ @@ -279,4 +279,4 @@ This method doesn't support deep comparements. #### Defined in -functions/replaceFromArrayByKeyValue.ts:12 +functions/replaceFromArrayByKeyValue.ts:31 diff --git a/src/functions/splitIntoChuks.ts b/src/functions/splitIntoChuks.ts index 3c2dd88..04acb1a 100644 --- a/src/functions/splitIntoChuks.ts +++ b/src/functions/splitIntoChuks.ts @@ -24,7 +24,7 @@ along with RCZ. If not, see . * @param chunkSize - size of a single chunk * @returns array of chunks */ -export const SplitIntoChunks = (array: T[], chunkSize: number): T[][] => { +export const splitIntoChunks = (array: T[], chunkSize: number): T[][] => { return array.reduce((splitArray, item, index) => { const chunkIndex = Math.floor(index / chunkSize);