Useful to bypass strict length checks and differentials between toUpperCase() / toLowerCase() .
function isASCII(str) {
for (var i = 0; i < str.length; i++) {
if (str.charCodeAt(i) > 127) {
return false;
}
}
return true;
}const c = String.fromCodePoint(i)
const c_upper = c.toUpperCase()
if (c_upper.length > c.length && isASCII(c_upper)){
log(c)
}const c = String.fromCodePoint(i)
const c_upper = c.toUpperCase()
if (c_upper.length > c.length && isASCII(c_upper)){
alert(c)
}