Merges together the values of each of the arrays