Write a script to identify an anagram
Peter Kim Frank Feb 01, 2018
In the language of your choice, write a script that will determine if two strings are an anagram for each other. You can use the approach outlined in the tweet, or — for bonus points — come up with your own solution 🤓.
An anagram is word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters exactly once.
For our challenge, we'll use the strict definition — each letter must be used exactly once.
isAnagram(stressed, desserts) // TRUE isAnagram(happy, sad) // FALSE