chunkArray = (arr, perChunk) => {
  return arr.reduce((resultArray, item, index) => {
    const chunkIndex = Math.floor(index / perChunk);

    if (!resultArray[chunkIndex]) {
      // @ts-ignore
      resultArray[chunkIndex] = []; // start a new chunk
    }

    // @ts-ignore
    resultArray[chunkIndex].push(item);

    return resultArray;
  }, []);
}
Split array of languages in two columns.

@template T Language object.
@param {Array<T>} arr Array of languages.
@param {number} perChunk Number of languages per column.
@returns {Array<T>} Array of languages split in two columns.