С
Size: a a a
С
DE
НС
С
НС
DE
DE
.replace(/\n+/, ' ;')
С
НС
DE
DE
DE
НС
function isPangram(str){
return str && (new Set(str.toLowerCase().replace(/[^a-z]/g, ''))).size === 26;
}
Fast: len=6, count=1000000: 3.69ms
Slow: len=6, count=1000000: 408.983ms
Fast: len=44, count=1000000: 273.734ms
Slow: len=44, count=1000000: 2.252s
Fast: len=26, count=1000000: 181.274ms
Slow: len=26, count=1000000: 1.123s
Fast: len=20000, count=1000: 40.457ms
Slow: len=20000, count=1000: 685.695ms
Fast: len=94706, count=1000: 376.028ms
Slow: len=94706, count=1000: 5.395s