Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ivanThePleasant/95712510b464e7b2e96e33b6aca8c5d0 to your computer and use it in GitHub Desktop.

Select an option

Save ivanThePleasant/95712510b464e7b2e96e33b6aca8c5d0 to your computer and use it in GitHub Desktop.
/**
Write a function that takes two words as an argument and returns true if they are anagrams (contain the exact same letters) and false otherwise.
An anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exactly once.
Examples:
Replays… Parsley
Leaf…Flea
Admirer… Married
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment