Looking for a way to reduce a nested list of arrays, into a single array of items that are unique, and drop any empty arrays.
Looking to reduce this array:
[[2700, 177, 2092, 176, 188], [123, 1234], []]
Down to this new array:
[2700, 177, 2092, 176, 188, 123, 1234]
Have tried array.uniq.compact, but did not work.
Thanks for any suggestions.