I currently have an array of arrays. There are 10 single-item arrays in my overall array
[["http://instagr.am/r/123"],["http://instagr.am/r/456"]....]
My goal is to clean this up so that it is an array of strings.
Ex:
[http://instagr.am/r/123, http://instagr.am/r/456, ... ]
I have been racking Google trying to find a solution for this but I seem to be unable to find one and I was hoping that you kind folks could help out an emerging Rubyist.
Array#flatten
[["http://instagr.am/r/123"],["http://instagr.am/r/456"]....].flatten
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With