I don't trust myself around while loops, so if I absolutely must use one, I set it up like this.

1let sanity = 0;// make sanity a high number you don't expectwhile(SOME_CONDITION && sanity < 10000) { sanity++; // do stuff}

No infinite loops from yours truly.

social.lol/@bw/117323178432680456