Object.keys(alarms).forEach() loop would work, and be safer for all sorts of reasons (for .. in loops often dont do what you want)