Created
September 14, 2023 08:25
-
-
Save romainmenke/6a578290b240aa9ba3c6e726ecab96a4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let aToZ = new Set('abcdefghijklmnopqrstuvwxyz'.split('')); | |
let aToZ_Match = /[a-z]/i; | |
for (let i = 0; i < 100000; i++) { | |
let char = String.fromCharCode(i); | |
if (aToZ.has(char)) continue; | |
if (!aToZ.has(char.toLowerCase())) continue; | |
if (aToZ_Match.test(char)) continue; | |
console.log(i, char, char.toLowerCase()) | |
} | |
// 8490 'K' 'k' | |
// 74026 'K' 'k' (duplicate) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment