function arrayFlatten(array) {
  return arrayReduce(array, function (initial, value) {
    return initial.concat(Array.isArray(value) ? arrayFlatten(value) : value);
  }, []);
}
Flatten multidimensional array.

@param {Array} array Array of Arrays
@returns {Array}