nhb-toolbox
Version:
A versatile collection of smart, efficient, and reusable utility functions and classes for everyday development needs.
8 lines • 477 B
TypeScript
/**
* * Utility to generate unique anagrams of a word.
* @param word The word for generating anagrams.
* @param limit The maximum number of anagrams to return ('all' for unlimited). Default is `100`.
* @returns An array of generated anagrams. The first element is always the given word. Generated anagrams are always in lowercase.
*/
export declare function generateAnagrams(word: string, limit?: number | 'all'): Lowercase<string>[];
//# sourceMappingURL=anagram.d.ts.map