.flatten returns a one-dimensional version of a multi-dimensional array. It does not overwrite the array with the new array.
[[1,2,3], [4,5,6], 7, [[8,9], 10]].flatten
=> [1,2,3,4,5,6,7,8,9,10]
multiple arguments are inputted in brackets and then .flatten is typed in.