I have a multidimensional array similar to this
[ [[]], [[1], [2]], [[1, 2]] ]
What is the best way to remove an empty array?
Right now I'm just doing array[1..-1]
to remove the first element, but I would like to get a more reliable way to do this.
Brand source share