showing results for - "check if anagram"
Andrea
09 Aug 2020
1function isAnagram(stringA, stringB) {
2  // Sanitizing
3  stringA = stringA.toLowerCase().replace(/[\W_]+/g, "");
4  stringB = stringB.toLowerCase().replace(/[\W_]+/g, "");
5
6  // sorting
7  const stringASorted = stringA.split("").sort().join("");
8  const stringBSorted = stringB.split("").sort().join("");
9
10  return stringASorted === stringBSorted;
11}
Helena
14 Jan 2019
1daiane
queries leading to this page
check if strings are anagrams pythonjava check anagramwhere my anagrams at javascripttwo strings are anagrams in jscheck if string are anagram python check if strings are anagram of each otheranagrams finder javascript for a wordcheck anagram correctjavascript anagramscheck anagram or not in javatwin word program in javascriptcheck if a string is anagramanagram check in pythonpython check anagramfind all anagram in an array javascriptanagram checkerangrams javascriptchecking if a string is an anagramanagrams in jsanagrams jsjs anagramsanagrama javascriptcheck if word is anagram in pythoncheck for anagram in list pythoncheck anagrams in pythonjavascript possible anagramspython check for anagramjava program to check anagramanagram meaning in jsanagram javascriptmake anagram in jsjs is angramanagram injsanagram js functionhow to check if a string is an anagram in pythonanagrams from a string javascriptcheck if anagramm javascriptcheck if words are anagrams javahow to check if it contains anagramsanagrams o 28n 29 javascript without sorthow to check anagram pythonanagram example in javascriptanagram meaning jsis anagram jsjavascript check arrays anagramsjs anagram in stringscheck if string are anagramanagrams log 28n 29 javascriptcheck if anagram or nothow to check anagram javascriptreturn anagram javascriptjs string anagramcheck anagram pythonanagram javascript solutionjavascript anagram checkhow to make anagrams of words in javascriptanagram function javascriptjs anagramanagram check pythonanagrams 2c javascriptfind anagrams in list of strings jsanagrams in javascriptanagram string in javascriptanagram checkhow to generate different anagrams in javascript for a string anagram javascriptcheck for anagramhow to check if a string is anagram of anotherjavascript check for anagramanagram 2 string javasvriptcheck if words are anagrams onlineanagram algorithm javascriptjavascript algorithm for detecting anagram in a sentenceanagram program in javascriptjs anagram function 22fun with anagrams 22 javascriptcheck anagram in pythonanagram program in javascranagram in the jsanagram in javascript problemsanagram coding jsanagrama em javascriptnumerical anagrams jsonline check if anagramall anagrams javascriptanagrammes jsjavascript check if anagram anagram javascripthow to do an anagram in javascriptcheck anagram python 3java script anagramsannagram jsanagrams javascriptfind twin word jsanagrams algorithm javascriptcheck if anagramcompare and remove anagrams jsanagram javascript exampleanagram jsanagram in js 5dfunction anagrams 28word words 29 javascriptjavascript anagram checkanagram javscriptcheck if anagram javahow to find in an anagram in jscheck anagramanagram code in javascriptanagram code in jsjava program to check for anagramanagram foreach jsanagram in javascriptanagrama jscheck string is anagram or notcheck if words are anagramscheck if something is anagram of someting elsevalid anagramhow to do anagrams in javascriptjavascript count anagramsall anagrams jspython check if anagramjavascript anagramcheck for anagram in pythoncreate an annagram from a string javascripthow to check anagram in a listjs all anagramshow to write anagram in javascriptchecking anagrams in javacheck the string is anagram or notcheck anagram in javajavascript anagram two stringsanagram solver javascript number of arrangementsanagram js codehow to print anagrams in javascripthow to check if two string are anagramhow to check string anagramsanagrams o 28n 29 javascriptanagram detection jsanagrama function jscheck anagrams javascriptanangram javascriptis anagram javascriptpython anagram checkcheck if string is an anagramjavascript code to check anagramjs make anagramwhere my anagrams at jscheck if anagram