I had a need to convert a struct to an array today. This function, and a member function struct.valueArray(), would have been really handy.
structSort() returns an array, but I don’t want it sorted… I used a struct to generate 5 random images and would prefer as random as possible. I did what I needed manually, but it wasn’t as elegant as Lucee normally is.