Last active
February 19, 2024 01:31
-
-
Save tdubs42/7d7181cdda031a0fffbe41c0ad846317 to your computer and use it in GitHub Desktop.
Valid Anagram - JavaScript
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
const isAnagram = (s, t) => { | |
if (s.split('').sort().join('') == t.split('').sort().join('')) { | |
return true | |
} | |
return false | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment