Pangrams

  • + 0 comments

    my JavaScript solution

    function pangrams(s) {
        const isPangram = s => new Set(s.toLowerCase().match(/[a-z]/g)).size === 26 ? "pangram" : "not pangram";
        
        return isPangram(s);
    
    }