In Javascript is there a clever way to loop through the names of properties in objects in an array?
I have objects with several properties including guest1 to guest1
I think you'll find useful the "in" operator:
if (("guest" + i) in results[i]) { /*code*/ }
Cheers