function isPangram(string) { var regex = /([a-z])(?!.*\1)/gi; return (string.match(regex) || []).length === 26; }