I'm stumped with this one. I have an array that looks like this:
[[1],[2],[3],[4],[5]]
(an array of single member arrays)
That array is given to me by google apps script, so I can't change the code that creates it.
i'm trying to get the index of a certain value. I can't use indexOf because each value is an array of a single member (I tried array.indexOf([3]), but that doesn't work). Is there an easy way to convert it to a 1d array like this:
[1,2,3,4,5]
I could always loop over the members of the original array, and copy it to a new array, but it seems like there should be a better way.