/**
* @param {string} sentence
* @return {boolean}
*/
var checkIfPangram = function (sentence) {
if (sentence.length < 1 || sentence.length > 1000 || /[A-Z]+$/.test(sentence)) {
return;
}
if (sentence.length < 26) {
return false;
}
for (let i = 'a'.charCodeAt(0); i <= 'z'.charCodeAt(0); i++) {
const c = String.fromCharCode(i);
if (sentence.indexOf(c) < 0) {
return false;
}
}
return true;
};