How do I create a list of all possible anagrams of a word in javascript?

manraj82 picture manraj82 · Jun 2, 2011 · Viewed 12.5k times · Source

How do I create a list of all possible anagrams of a word in javascript?If this question has already been asked please direct me to the answer?

Thank You

Answer

Town picture Town · Jun 2, 2011

Here you go: Anagrams finder in javascript

I'm not sure whether that's the exact same problem as yours, but there look to be a few good solutions in the answers.

EDIT: Actually, this is what you need: Is there any pre-built method for finding all permutations of a given string in JavaScript?