• + 0 comments

    Here's my Javascript / Typescript solution (Thank you ES6+)

    const ABC = "abcdefghijklmnopqrstuvwxyz".split("");
    function pangrams(s: string): string {
        const incomingString = s.toLowerCase().split("");
        const allMatches = ABC.every(letter => incomingString.includes(letter))
        return allMatches ? "pangram" : "not pangram";
    }