one_dimensional_array = [[2,3], [12,3], [54,0, [101]]].flatten --> [2, 3, 12, 3, 54, 0, 101] this method converts a multidimensional array to a one dimensional array