fix(functions): SplitIntoChunks => splitIntoChunks
to comply with internal naming convention
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user