Skip to content

Latest commit

 

History

History
5 lines (5 loc) · 173 Bytes

rb_methods_flatten.md

File metadata and controls

5 lines (5 loc) · 173 Bytes
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