Skip to content

Instantly share code, notes, and snippets.

@tdubs42
Last active February 19, 2024 01:31
Show Gist options
  • Save tdubs42/7d7181cdda031a0fffbe41c0ad846317 to your computer and use it in GitHub Desktop.
Save tdubs42/7d7181cdda031a0fffbe41c0ad846317 to your computer and use it in GitHub Desktop.
Valid Anagram - JavaScript
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