Find all the anagrams within a series of words provided.
e.g.:
'eat', 'ate', 'tea', 'monk', 'konm', 'nkom', 'bbc', 'cbb', 'dell', 'ledl', 'llde'
[
['eat', 'ate', 'tea'],
['monk', 'konm', 'nkom'],
['bbc', 'cbb'],
['dell', 'ledl', 'llde'],
]
Anagrams are words or phrases you spell by rearranging the letters of another word or phrase. For instance, fans of the Harry Potter series know that Lord Voldemort's full name is actually an anagram of his birth name, and some people even play games challenging one another to make anagrams still relevant to the original term. For example, "schoolmaster" can be turned into "the classroom", "punishments" becomes "nine thumps", and "debit card" turns into "bad credit".
node solution.js