I have a project where I need to iterate through a JavaScript list by index, retrieve both the name and value of each item, and then perform a specific action with that information. The list is structured as follows:
{"test-item-1": false, "test-item-2": false, "test-item-3": false}
However, the order and content of the items are unknown, so I must locate each item by index. Could someone assist me in finding a solution for this?