79112973

Date: 2024-10-22 08:02:58
Score: 0.5
Natty:
Report link

Following up on @ver-greeneyes response with the latest Object.groupBy static function:

function chunkArray(array, perChunk) {
  return Object.values(Object.groupBy(array, (_, i) => i / perChunk | 0));
}
Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: RecuencoJones