DEV Community

Discussion on: Anagrams Checker - Three JavaScript Solutions

Collapse
 
lexlohr profile image
Alex Lohr

I initially thought about that approach, but discarded it for an obvious reason:

anagrams('abc', 'aad') // => true
Enter fullscreen mode Exit fullscreen mode
Collapse
 
calebpitan profile image
Caleb Adepitan

Smart 😃.
It's just too obvious. Didn't take time to analyze it. It struck my mind as I saw this post and I put it down.