Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

anagram javascript example

function anagram(name, words) {
	name =  name.toLowerCase().split('').sort().join('').trim();
  words = words.join('').toLowerCase().split('').sort().join('');
  return name === words;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #anagram #javascript
ADD COMMENT
Topic
Name
5+9 =