main
chunkBy
export function chunkBy(array, fn) { const { chunks, chunk } = ( array.reduce( (acc, curr) => { const key = fn(curr);