You are viewing a single comment's thread. Return to all comments →
and JS feels dirty
container = {}; input.toLowerCase().replace(/\s/g, '').split("").forEach(function(item){ if (!container.hasOwnProperty(item)) container[item] = true; }); Object.keys(container).length == 26 ? console.log("pangram") : console.log("not pangram");
Seems like cookies are disabled on this browser, please enable them to open this website
Pangrams
You are viewing a single comment's thread. Return to all comments →
and JS feels dirty