Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

Detect Pangram

/*
	// A pangram is a sentence that contains every single letter of the alphabet at 
    least once. For example, the sentence "The quick brown fox jumps over the lazy 
    dog" is a pangram, because it uses the letters A-Z at least once 
    (case is irrelevant).
	// Given a string, detect whether or not it is a pangram. Return True if it is, 
    False if not. Ignore numbers and punctuation.
*/

const isPangram = string => [... new Set(string.replace(/[d|W|s|_]/gi, "")
                                         .toLowerCase())].length === 26


// With love @kouqhar
Comment

PREVIOUS NEXT
Code Example
Javascript :: get value from input by id in angular 
Javascript :: write hello world in javaskript 
Javascript :: how to access node js server from another computer 
Javascript :: GET and CHANGE the class of an element 
Javascript :: how to call mixin in vuex 
Javascript :: react set initial state without constructor 
Javascript :: alert in javascript 
Javascript :: jquery fedein background color 
Javascript :: setstate 
Javascript :: react native ant design 
Javascript :: tailwind rn yarn install 
Javascript :: insert a string in another js 
Javascript :: $[name] in jquery 
Javascript :: openstreetmap api example javascript 
Javascript :: java script example 
Javascript :: javascript for each 
Javascript :: javascript sleep one second 
Javascript :: ternary operator nodejs 
Javascript :: npm ERR! code EPERM 
Javascript :: js export options 
Javascript :: angular mouseenter 
Javascript :: ajax call to load a page on scrolling 
Javascript :: random message in discord.js 
Javascript :: call a javascript function at a specific time of day 
Javascript :: Real image width with JavaScript 
Javascript :: how to make a div auto refresh js 
Javascript :: save array file 
Javascript :: array merge in javascript 
Javascript :: password generator 
Javascript :: stripe delete product 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =