I have a for loop that looks something like
for (var key in myObjectArray) {
[code]
}
I would like to do the same thing except have the order of the output shuffled every time.
Is there any easy way to do it? I can make a separate array of keys, sort them, and then do a for loop with an index… but that seems like a lot of work and rather inefficient.