Hello. I’ve read the (many) threads on this challenge, and I have a solution, but I still do not understand why the ‘!’ negator works, but the affirmative condition does not? For example, this condition works as a test (partial code below, to not give away answer)
if(!collection[i][pre]) return false; } return true;
But this code does not work.
if(collection[i][pre]) return true; } return false;
I noticed that in the second version above, the ‘test’ does not seem to get applied past the first object in the argument ‘collection’, but I would like to understand why this is. Thanks for your help!