79078078

Date: 2024-10-11 11:49:08
Score: 1
Natty:
Report link

you should try changing the splitInColumns function a little bit for example :

const splitInCOlumns = (nCol,photos) => {
if (Array.isArray(photos)){
const col = new Array(nCol).fill(null).map(() => []);

photos.forEach((photo,index)=> {
col[index % nCol].push(photo);
});
return col;
}
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Aman Thakur