string-combinations
v1.0.2
Published
Generate all possible combinations of a given input String
Downloads
4
Maintainers
Readme
string-combinations
This module is used to generate all possible combinations of a given input String.
Input : Any valid String
Output : An array of all possible combinations
Example Usage
var combinations = require('string-combinations');
var result = combinations.generate("abcde");
Sample Output
[ 'a', 'b', 'ab', 'c', 'ac', 'bc', 'abc', 'd', 'ad', 'bd', 'abd', 'cd', 'acd', 'bcd', 'abcd', 'e', 'ae', 'be', 'abe', 'ce', 'ace', 'bce', 'abce', 'de', 'ade', 'bde', 'abde', 'cde', 'acde', 'bcde', 'abcde' ]
Contact Info
Please raise any issues at this page