fix(functions): SplitIntoChunks => splitIntoChunks

to comply with internal naming convention
This commit is contained in:
2024-03-12 18:45:50 +02:00
parent 2a359099ba
commit 85f365c528
3 changed files with 14 additions and 10 deletions

View File

@@ -24,7 +24,7 @@ along with RCZ. If not, see <https://www.gnu.org/licenses/>.
* @param chunkSize - size of a single chunk
* @returns array of chunks
*/
export const SplitIntoChunks = <T>(array: T[], chunkSize: number): T[][] => {
export const splitIntoChunks = <T>(array: T[], chunkSize: number): T[][] => {
return array.reduce<T[][]>((splitArray, item, index) => {
const chunkIndex = Math.floor(index / chunkSize);