How do I convert an array of strings into a comma-separated string?
arrays, ruby, ruby-on-rails
Solution
["10", "20", "50","99"].map(&:inspect).join(', ') # => '"10", "20", "50", "99"'
Problem
I have an array: ``` array = ["10", "20", "50", "99"] ``` And I want to convert it into a simple comma-separated string list like this: ``` "10", "20", "50", "99" ```