code: function partitionArray(array, size) {
    return array.map((e, i) => (i % size === 0) ? array.slice(i, i + size) : null).filter((e) => e)
  }
docs: split array into multiple arrays of defined size
  @param {Array} array
  @param {number} size
  @returns {Array}