3 ms·
I see the logic of this feature, and in a couple of seconds I'll be unable to understand it again.
by slver 6y ago
I see the logic of this feature, and in a couple of seconds I'll be unable to understand it again.
- compressedgas 6y agoI keep wanting the else to run when the loop didn't iterate.
- slver 6y agoI thought about how I'd do this in JS, and it's paradoxically more compact and less confusing without dedicated syntax: if (leaders.some(i => i == "Yang")) { alert("Yang is a leader!"); } else { alert("Not found Yang!"); }