Check for Anagrams

Published by Pickle in

Create a function that takes two strings and returns either true or false depending on whether they're anagrams or not.

Examples

is_anagram("cristian", "Cristina") ➞ true

is_anagram("Dave Barry", "Ray Adverb") ➞ true

is_anagram("Nope", "Note") ➞ false

Notes

  • Should be case insensitive.
  • The two given strings can be of different lengths.
Watch a quick demo on how Edabit works.