Good question, someone have asked similar question on Stackoverflow.
for (const property in object)
works because with each iteration you get a new variable, which is scoped only to that iteration
Good question, someone have asked similar question on Stackoverflow.
for (const property in object)
works because with each iteration you get a new variable, which is scoped only to that iteration