Created
December 20, 2017 17:33
-
-
Save aromig/55e875a747db39c4752dc7e76d3d1da1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function isAnagram(phrase1, phrase2) { | |
return phrase1.split("").sort().join("") === phrase2.split("").sort().join(""); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment