Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

isogram

const isIsogram = str => {
  str = str.toLowerCase().split('')
  let dupArr = [...new Set(str)]
  return dupArr.join('').length === str.join('').length
}
console.log(isIsogram("Dermatoglyphics"))

// With love @kouqhar
Comment

Is IsoGram

function isIsogram(str){
  return new Set(str.toUpperCase()).size == str.length;
}
Comment

Isogram

// An isogram is a word that has no repeating letters, consecutive or non-consecutive. Implement a function that determines whether a string that contains only letters is an isogram. Assume the empty string is an isogram. Ignore letter case.

const isIsogram = str => {
  str = str.toLowerCase().split('')
  let dupArr = [...new Set(str)]
  return dupArr.join('').length === str.join('').length
}
console.log(isIsogram("Dermatoglyphics"))

// With love @kouqhar
Comment

PREVIOUS NEXT
Code Example
Javascript :: angularjs left xx characters 
Javascript :: how to use ternary operatiion in sequelize join statement 
Javascript :: how to write a program that determines the minutes since midnight, Jan 1, 1970 in javascript 
Javascript :: javascript sistemas 
Javascript :: how to wait for an exec command to fininsh in nodejs 
Javascript :: Cypress.currentTest 
Javascript :: javascript apexcharts to base 64 image 
Javascript :: how to make modules structure like lodash 
Javascript :: const data = event.currentTarget.value 
Javascript :: replace array element javascript stack overflow 
Javascript :: mongoose virtual populate paginat 
Javascript :: react set multible attribute values 
Javascript :: express js continous GET /json/version 
Javascript :: activejs 
Javascript :: defer accessing a variable until available in js 
Javascript :: react generate ethereum address 
Javascript :: how to check type of value in a java script file 
Javascript :: pupeteer disable script call 
Javascript :: how to test timeout in component did mount 
Javascript :: tableau javascript 
Javascript :: dwhdjksbhds efedhgsd djsioqdhsjd 
Javascript :: jquerybuilder input date 
Javascript :: angular browser detector 
Javascript :: what is event in function inside prantesisi 
Javascript :: charat javascript in swicth 
Javascript :: how to find the current date and time of a city in js 
Javascript :: mongodbClint express 
Javascript :: Javascript uninstall dependancy 
Javascript :: javascript alternance images 
Javascript :: angular cli generate component no tests 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =