I have an object that comes like this:
let sizes = {
'30': false,
'36': false,
'40': false
}
I was wandering is it possible to toggle all of them with one function, so that only one value is true at a time, while not depending on the key and the length of the object?
It seems that For-in loop would be great for that, I'm just not sure how to approach it.
I've been sitting on this problem for a couple of hours, and cannot seem to find something similar. Thank you!