Skip to content

Instantly share code, notes, and snippets.

@sunpietro
Created July 22, 2014 10:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sunpietro/1ab60aa2092c754391e5 to your computer and use it in GitHub Desktop.
Save sunpietro/1ab60aa2092c754391e5 to your computer and use it in GitHub Desktop.
function detectAnagrams(a, b) {
return a.toLowerCase().split('').sort().join('') === b.toLowerCase().split('').sort().join('');
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment