Feedback on solution please
Steven Parker205,183 Points
Iterating through the properties can be a useful technique But you should be aware of some behavioral differences from the original code that will occur:
- if a property is missing, it will be silently omitted where the original will show the property as "undefined"
- if any extra properties are added, they will be listed where the original would show only the intended ones
- the order that the properties are listed is no longer guaranteed
Nice way to see the problem!