https://blur-girl-25.blogspot.com/2024/09/javascript-weird-behavior-in-foreach.html
Javascript: Weird Behavior In Foreach Loop