UNPKG

qsu

Version:

qsu is a utility library that contains useful and frequently used functions. Start with your preferred language and the modern development environment.

1 lines 169 B
export function arrGroupByMaxCount(t,n=1){const e=[],r=t.length;let u=[];for(let h=0;h<r;h+=1)u.length===n&&(e.push(u),u=[]),u.push(t[h]);return u.length>0&&e.push(u),e}