by twicetwice · 6y ago · 0 comments
Just for fun, the JavaScript one-liner I used to check:
const check = str => [...Array(26)].map((t, i) => String.fromCharCode("a".charCodeAt(0) + i)).filter(l => str.indexOf(l) < 0) str => [...Array(26)].every((e, i) => str.indexOf(String.fromCharCode(97 + i)) >= 0)
There should probably be a .toLowerCase() in there, though. "qwertyuiopasdfghjklzxcvbnm".split("")