문제 링크 : Check if the Sentence Is Pangram
/**
* @param {string} sentence
* @return {boolean}
*/
var checkIfPangram = function(sentence) {
const alphabetArr = new Array(26).fill(0)
for(let el of sentence) {
alphabetArr[el.charCodeAt()-97] +=1
}
for(let el of alphabetArr) {
if(el === 0) return false
}
return true
};
/**
* @param {string} sentence
* @return {boolean}
*/
var checkIfPangram = function(sentence) {
return new Set(sentence.split('')).size === 26 ? true : false
};